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(
13311331 }
13321332
13331333 // 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 {
13371335 cargo. env ( "CFG_USE_SELF_CONTAINED_LINKER" , "1" ) ;
13381336 }
13391337
Original file line number Diff line number Diff line change @@ -2365,10 +2365,7 @@ impl Config {
23652365 // thus, disabled
23662366 // - similarly, lld will not be built nor used by default when explicitly asked not to, e.g.
23672367 // 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 ] {
23722369 let no_llvm_config = config
23732370 . target_config
23742371 . get ( & config. build )
You can’t perform that action at this time.
0 commit comments