File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -421,29 +421,18 @@ pub fn linker_flags(
421
421
builder : & Builder < ' _ > ,
422
422
target : TargetSelection ,
423
423
lld_threads : LldThreads ,
424
- stage : u32 ,
424
+ _stage : u32 ,
425
425
) -> Vec < String > {
426
426
let mut args = vec ! [ ] ;
427
427
if !builder. is_lld_direct_linker ( target) && builder. config . lld_mode . is_used ( ) {
428
428
match builder. config . lld_mode {
429
429
LldMode :: External => {
430
- // cfg(bootstrap) - remove the stage 0 check after updating the bootstrap compiler:
431
- // `-Clinker-features` has been stabilized.
432
- if stage == 0 {
433
- args. push ( "-Zlinker-features=+lld" . to_string ( ) ) ;
434
- } else {
435
- args. push ( "-Clinker-features=+lld" . to_string ( ) ) ;
436
- }
430
+ args. push ( "-Zlinker-features=+lld" . to_string ( ) ) ;
431
+ args. push ( "-Clinker-features=+lld" . to_string ( ) ) ;
437
432
args. push ( "-Zunstable-options" . to_string ( ) ) ;
438
433
}
439
434
LldMode :: SelfContained => {
440
- // cfg(bootstrap) - remove the stage 0 check after updating the bootstrap compiler:
441
- // `-Clinker-features` has been stabilized.
442
- if stage == 0 {
443
- args. push ( "-Zlinker-features=+lld" . to_string ( ) ) ;
444
- } else {
445
- args. push ( "-Clinker-features=+lld" . to_string ( ) ) ;
446
- }
435
+ args. push ( "-Clinker-features=+lld" . to_string ( ) ) ;
447
436
args. push ( "-Clink-self-contained=+linker" . to_string ( ) ) ;
448
437
args. push ( "-Zunstable-options" . to_string ( ) ) ;
449
438
}
You can’t perform that action at this time.
0 commit comments