File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1331,9 +1331,7 @@ pub fn rustc_cargo_env(
1331
1331
}
1332
1332
1333
1333
// Enable rustc's env var for `rust-lld` when requested.
1334
- if builder. config . lld_enabled
1335
- && ( builder. config . channel == "dev" || builder. config . channel == "nightly" )
1336
- {
1334
+ if builder. config . lld_enabled {
1337
1335
cargo. env ( "CFG_USE_SELF_CONTAINED_LINKER" , "1" ) ;
1338
1336
}
1339
1337
Original file line number Diff line number Diff line change @@ -2365,10 +2365,7 @@ impl Config {
2365
2365
// thus, disabled
2366
2366
// - similarly, lld will not be built nor used by default when explicitly asked not to, e.g.
2367
2367
// when the config sets `rust.lld = false`
2368
- if config. build . triple == "x86_64-unknown-linux-gnu"
2369
- && config. hosts == [ config. build ]
2370
- && ( config. channel == "dev" || config. channel == "nightly" )
2371
- {
2368
+ if config. build . triple == "x86_64-unknown-linux-gnu" && config. hosts == [ config. build ] {
2372
2369
let no_llvm_config = config
2373
2370
. target_config
2374
2371
. get ( & config. build )
You can’t perform that action at this time.
0 commit comments