Skip to content

Commit 3d50aee

Browse files
committed
Fix passing of LLD threads flag
1 parent 4cb5a25 commit 3d50aee

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
@@ -1302,7 +1302,7 @@ impl Build {
13021302
// If we use an external LLD, we don't know if it's new enough to support the required
13031303
// threads flag. Therefore we invoke it to find it out.
13041304
// The self-contained lld should always be new enough.
1305-
if test {
1305+
if test && matches!(self.config.lld_mode, LldMode::External) {
13061306
let flag = self.lld_single_thread_flag(target);
13071307
flags.push(format!("-Clink-arg=-Wl,{flag}"));
13081308
}

0 commit comments

Comments
 (0)