-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Require LLVM_CONFIG to be set in rustc_llvm/build.rs #123294
Conversation
This environment variable should always be set by bootstrap in `rustc_llvm_env`. The fallback is quite ugly and complicated, so removing it is nice.
That function is not called in check mode, but this build scripts also quits early in that case.
i.e. 4da4970, and I think this is what that was mimicking: Line 301 in 4da4970
... but the fallback probably hasn't been functional in a long time. |
@bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#123294 (Require LLVM_CONFIG to be set in rustc_llvm/build.rs) - rust-lang#123467 (MSVC targets should use COFF as their archive format) - rust-lang#123498 (explaining `DefKind::Field`) - rust-lang#123519 (Improve cfg and check-cfg configuration) - rust-lang#123525 (CFI: Don't rewrite ty::Dynamic directly) - rust-lang#123526 (Do not ICE when calling incorrectly defined `transmute` intrinsic) - rust-lang#123528 (Hide async_gen_internals from standard library documentation) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123294 - Nilstrieb:reuqire-llvm-config, r=clubby789 Require LLVM_CONFIG to be set in rustc_llvm/build.rs This environment variable should always be set by bootstrap in `rustc_llvm_env`. The fallback is quite ugly and complicated, so removing it is nice. https://github.com/rust-lang/rust/blob/bf71daedc29e7a240261acd1516378047e311a6f/src/bootstrap/src/core/build_steps/compile.rs#L1166 I tried finding when this was added in git history, but it pointed all the way to "add build scripts" at which point I stopped digging more. This has always been here. cc `@nikic` `@cuviper` in case you happen to be aware of a deeper reason behind this r? bootstrap
This environment variable should always be set by bootstrap in
rustc_llvm_env
. The fallback is quite ugly and complicated, so removing it is nice.rust/src/bootstrap/src/core/build_steps/compile.rs
Line 1166 in bf71dae
I tried finding when this was added in git history, but it pointed all the way to "add build scripts" at which point I stopped digging more. This has always been here.
cc @nikic @cuviper in case you happen to be aware of a deeper reason behind this
r? bootstrap