File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -470,17 +470,12 @@ pub fn linker_flags(
470
470
if !builder. is_lld_direct_linker ( target) && builder. config . lld_mode . is_used ( ) {
471
471
match builder. config . lld_mode {
472
472
LldMode :: External => {
473
- // cfg(bootstrap) - remove after updating bootstrap compiler (#137498)
474
- if stage == 0 && target. is_windows ( ) {
475
- args. push ( "-Clink-arg=-fuse-ld=lld" . to_string ( ) ) ;
476
- } else {
477
- args. push ( "-Clinker-flavor=gnu-lld-cc" . to_string ( ) ) ;
478
- }
473
+ args. push ( "-Zlinker-features=+lld" . to_string ( ) ) ;
479
474
// FIXME(kobzol): remove this flag once MCP510 gets stabilized
480
475
args. push ( "-Zunstable-options" . to_string ( ) ) ;
481
476
}
482
477
LldMode :: SelfContained => {
483
- args. push ( "-Clinker-flavor=gnu- lld-cc " . to_string ( ) ) ;
478
+ args. push ( "-Zlinker-features=+ lld" . to_string ( ) ) ;
484
479
args. push ( "-Clink-self-contained=+linker" . to_string ( ) ) ;
485
480
// FIXME(kobzol): remove this flag once MCP510 gets stabilized
486
481
args. push ( "-Zunstable-options" . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments