Skip to content

Commit

Permalink
Enable lld linker feature when building rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlattimore committed Oct 13, 2024
1 parent 7bb27f8 commit 1e1bf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/src/utils/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ pub fn linker_flags(
) -> Vec<String> {
let mut args = vec![];
if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
args.push(String::from("-Clink-arg=-fuse-ld=lld"));
args.push(String::from("-Zlinker-features=+lld"));

if matches!(lld_threads, LldThreads::No) {
args.push(format!(
Expand Down

0 comments on commit 1e1bf2b

Please sign in to comment.