X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Flib.rs;h=f5def8ba8341f58b817afaedb9828e75a6ad0ff7;hb=f00897e2f4a411b0fa8ffb403a114bca007f0601;hp=7e70e99bb8ca22ee78d1d78170cd2736e736bab4;hpb=8ba2a651fb16f5d0f54c961e0ae925c9bad2fafb;p=rust.git diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 7e70e99bb8c..f5def8ba834 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -1152,8 +1152,8 @@ fn lld_flags(&self, target: TargetSelection) -> impl Iterator { options[0] = Some("-Clink-arg=-fuse-ld=lld".to_string()); } - let threads = if target.contains("windows") { "/threads:1" } else { "--threads=1" }; - options[1] = Some(format!("-Clink-arg=-Wl,{}", threads)); + let no_threads = util::lld_flag_no_threads(target.contains("windows")); + options[1] = Some(format!("-Clink-arg=-Wl,{}", no_threads)); } IntoIterator::into_iter(options).flatten()