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 @@ -1328,9 +1328,7 @@ pub fn rustc_cargo_env(
13281328 }
13291329
13301330 // Enable rustc's env var for `rust-lld` when requested.
1331- if builder. config . lld_enabled
1332- && ( builder. config . channel == "dev" || builder. config . channel == "nightly" )
1333- {
1331+ if builder. config . lld_enabled {
13341332 cargo. env ( "CFG_USE_SELF_CONTAINED_LINKER" , "1" ) ;
13351333 }
13361334
Original file line number Diff line number Diff line change @@ -2334,10 +2334,7 @@ impl Config {
23342334 // thus, disabled
23352335 // - similarly, lld will not be built nor used by default when explicitly asked not to, e.g.
23362336 // when the config sets `rust.lld = false`
2337- if config. build . triple == "x86_64-unknown-linux-gnu"
2338- && config. hosts == [ config. build ]
2339- && ( config. channel == "dev" || config. channel == "nightly" )
2340- {
2337+ if config. build . triple == "x86_64-unknown-linux-gnu" && config. hosts == [ config. build ] {
23412338 let no_llvm_config = config
23422339 . target_config
23432340 . get ( & config. build )
You can’t perform that action at this time.
0 commit comments