Skip to content

Commit da173ff

Browse files
committed
Fix passing of LLD threads flag
1 parent 332d9e3 commit da173ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ impl Build {
13101310
// If we use an external LLD, we don't know if it's new enough to support the required
13111311
// threads flag. Therefore we invoke it to find it out.
13121312
// The self-contained lld should always be new enough.
1313-
if test {
1313+
if test && matches!(self.config.lld_mode, LldMode::External) {
13141314
let flag = self.lld_single_thread_flag(target);
13151315
flags.push(format!("-Clink-arg=-Wl,{flag}"));
13161316
}

0 commit comments

Comments
 (0)