bootstrap: introduce rust-lld env var for rustc
This is used to notify we want to use rust-lld as the default linker in a target.
This commit is contained in:
parent
4a78c00e22
commit
28ce76eba4
@ -1136,6 +1136,11 @@ pub fn rustc_cargo_env(
|
||||
cargo.env("CFG_DEFAULT_LINKER", s);
|
||||
}
|
||||
|
||||
// Enable rustc's env var for `rust-lld` when requested.
|
||||
if builder.config.lld_enabled {
|
||||
cargo.env("CFG_USE_SELF_CONTAINED_LINKER", "1");
|
||||
}
|
||||
|
||||
if builder.config.rust_verify_llvm_ir {
|
||||
cargo.env("RUSTC_VERIFY_LLVM_IR", "1");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user