-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make LLD build forward-compatible with LLVM 16 #106000
Conversation
LLVM does this itself since 606cb85, and 14 is no longer the correct standard when building lld 16, causing build failures.
(rustbot has picked a reviewer for you, use r? to override) |
@bors try I wasn't able to test the docker image due to "setting llvm.thin_lto is incompatible with download-ci-llvm", let's see if it works in CI. |
⌛ Trying commit 6733a3f with merge ae234e720bf603c959226f2394cc3d920d132cf0... |
r=me when ready |
☀️ Try build successful - checks-actions |
@bors r=Mark-Simulacrum |
@bors rollup=iffy |
Make LLD build forward-compatible with LLVM 16 Switch to using the cmake module instead of llvm-config. I believe this also removes the need for llvm-config-wrapper.
⌛ Testing commit 6733a3f with merge 57590d8547f5dcd6788583632ba01a7ea130b285... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
LLVM_CONFIG_PATH is no longer supported as of LLVM 16, switch to using the cmake module instead. We separately return the llvm-config and cmake directory paths, because llvm-config always refers to the host binary, while the cmake directory is for the target triple.
Okay, we can't derive the cmake directory from the llvm-config path, because we always return llvm-config for the build triple, not the target triple (we can't execute the target llvm-config binary). So we need to return both the llvm-config path and the cmake directory. The dist-s390x-linux build now works locally. |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e5e4eef): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
Make LLD build forward-compatible with LLVM 16 Switch to using the cmake module instead of llvm-config. I believe this also removes the need for llvm-config-wrapper.
Switch to using the cmake module instead of llvm-config. I believe this also removes the need for llvm-config-wrapper.