File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 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(
470470 if !builder. is_lld_direct_linker ( target) && builder. config . lld_mode . is_used ( ) {
471471 match builder. config . lld_mode {
472472 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 ( ) ) ;
479474 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
480475 args. push ( "-Zunstable-options" . to_string ( ) ) ;
481476 }
482477 LldMode :: SelfContained => {
483- args. push ( "-Clinker-flavor=gnu- lld-cc " . to_string ( ) ) ;
478+ args. push ( "-Zlinker-features=+ lld" . to_string ( ) ) ;
484479 args. push ( "-Clink-self-contained=+linker" . to_string ( ) ) ;
485480 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
486481 args. push ( "-Zunstable-options" . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments