-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fix download-ci-llvm
NixOS patching for binaries
#99128
Conversation
LLVM tools should also be patched, since they are used in some tests, specially, - src/test/run-make-fulldeps/cross-lang-lto (llvm-ar) - src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs (llvm-ar) - src/test/run-make-fulldeps/issue-64153 (llvm-objdump) To be more future proof, we should patch all binaries in `bin`.
r? @jyn514 (rust-highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable. I'm surprised it wasn't an issue until now ... the code for this moved from python to rust recently, maybe that affected things? but the old python code special cased these two binaries also ...
rust/src/bootstrap/bootstrap.py
Lines 531 to 532 in 9a2d14c
for binary in ["llvm-config", "FileCheck"]: | |
self.fix_bin_or_dylib(os.path.join(llvm_root, "bin", binary)) |
anyway, this LGTM
@bors r+ rollup (no NixOS CI runners) |
Is the python code still in use and need fixing? I'm not hitting that code with |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#98713 (promote placeholder bounds to 'static obligations) - rust-lang#99094 (Remove extra space in AtomicPtr::new docs) - rust-lang#99095 (Remove duplicate notes from error on inter-crate ambiguous impl of traits) - rust-lang#99114 (Group .test-arrow CSS rules and fix rgb/rgba property) - rust-lang#99128 (Fix `download-ci-llvm` NixOS patching for binaries) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
@oxalica no, the code lives fully in rust now. Just trying to figure out how long this has been an issue. |
LLVM tools should also be patched, since they are used in some tests, specially,
To be more future proof, we should patch all binaries in
bin
, which is done in this PR.