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