We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a78c00 commit 28ce76eCopy full SHA for 28ce76e
1 file changed
src/bootstrap/src/core/build_steps/compile.rs
@@ -1136,6 +1136,11 @@ pub fn rustc_cargo_env(
1136
cargo.env("CFG_DEFAULT_LINKER", s);
1137
}
1138
1139
+ // Enable rustc's env var for `rust-lld` when requested.
1140
+ if builder.config.lld_enabled {
1141
+ cargo.env("CFG_USE_SELF_CONTAINED_LINKER", "1");
1142
+ }
1143
+
1144
if builder.config.rust_verify_llvm_ir {
1145
cargo.env("RUSTC_VERIFY_LLVM_IR", "1");
1146
0 commit comments