Skip to content

Commit

Permalink
Fix passing of LLD threads flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Sep 30, 2023
1 parent 4cb5a25 commit 3d50aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ impl Build {
// If we use an external LLD, we don't know if it's new enough to support the required
// threads flag. Therefore we invoke it to find it out.
// The self-contained lld should always be new enough.
if test {
if test && matches!(self.config.lld_mode, LldMode::External) {
let flag = self.lld_single_thread_flag(target);
flags.push(format!("-Clink-arg=-Wl,{flag}"));
}
Expand Down

0 comments on commit 3d50aee

Please sign in to comment.