We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 332d9e3 commit da173ffCopy full SHA for da173ff
src/bootstrap/lib.rs
@@ -1310,7 +1310,7 @@ impl Build {
1310
// If we use an external LLD, we don't know if it's new enough to support the required
1311
// threads flag. Therefore we invoke it to find it out.
1312
// The self-contained lld should always be new enough.
1313
- if test {
+ if test && matches!(self.config.lld_mode, LldMode::External) {
1314
let flag = self.lld_single_thread_flag(target);
1315
flags.push(format!("-Clink-arg=-Wl,{flag}"));
1316
}
0 commit comments