Skip to content

Commit b420815

Browse files
committed
tmp: show self-contained linker status
1 parent 75ac3b6 commit b420815

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,13 @@ pub fn rustc_cargo_env(
11371137
}
11381138

11391139
// Enable rustc's env var for `rust-lld` when requested.
1140-
if builder.config.lld_enabled {
1140+
if builder.config.lld_enabled
1141+
&& (builder.config.channel == "dev" || builder.config.channel == "nightly")
1142+
{
1143+
eprintln!("status: CFG_USE_SELF_CONTAINED_LINKER is enabled");
11411144
cargo.env("CFG_USE_SELF_CONTAINED_LINKER", "1");
1145+
} else {
1146+
eprintln!("status: CFG_USE_SELF_CONTAINED_LINKER is disabled");
11421147
}
11431148

11441149
if builder.config.rust_verify_llvm_ir {

0 commit comments

Comments
 (0)