Skip to content

Commit a09620b

Browse files
committed
Use target agnostic LLD flags in bootstrap for use-lld
1 parent a4166da commit a09620b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/bootstrap/src/utils/helpers.rs

+2-7
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)