Skip to content

Commit 1e1bf2b

Browse files
Enable lld linker feature when building rustc
1 parent 7bb27f8 commit 1e1bf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub fn linker_flags(
428428
) -> Vec<String> {
429429
let mut args = vec![];
430430
if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
431-
args.push(String::from("-Clink-arg=-fuse-ld=lld"));
431+
args.push(String::from("-Zlinker-features=+lld"));
432432

433433
if matches!(lld_threads, LldThreads::No) {
434434
args.push(format!(

0 commit comments

Comments
 (0)