We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c68032f + 81f61ac commit 0b55b50Copy full SHA for 0b55b50
compiler/rustc_llvm/build.rs
@@ -228,10 +228,10 @@ fn main() {
228
let mut cmd = Command::new(&llvm_config);
229
cmd.arg(llvm_link_arg).arg("--libs");
230
231
- // Don't link system libs if cross-compiling unless targeting Windows.
+ // Don't link system libs if cross-compiling unless targeting Windows from Windows host.
232
// On Windows system DLLs aren't linked directly, instead import libraries are used.
233
// These import libraries are independent of the host.
234
- if !is_crossed || target.contains("windows") {
+ if !is_crossed || target.contains("windows") && host.contains("windows") {
235
cmd.arg("--system-libs");
236
}
237
0 commit comments