blob: 12844fd7efc72853b90b8ba2eb46526b32b69cbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
https://paste.sr.ht/~kchibisov/682321e0fd4a3ece4a4b7b71591896f5cd3cdb22
https://github.com/gentoo/gentoo/pull/35246#discussion_r1484525497
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
index f606fa483ca..8a2e1c40e8b 100644
--- a/compiler/rustc_llvm/build.rs
+++ b/compiler/rustc_llvm/build.rs
@@ -220,12 +220,7 @@
let mut cmd = Command::new(&llvm_config);
cmd.arg(llvm_link_arg).arg("--libs");
- // Don't link system libs if cross-compiling unless targetting Windows.
- // On Windows system DLLs aren't linked directly, instead import libraries are used.
- // These import libraries are independent of the host.
- if !is_crossed || target.contains("windows") {
- cmd.arg("--system-libs");
- }
+ cmd.arg("--system-libs");
// We need libkstat for getHostCPUName on SPARC builds.
// See also: https://github.com/llvm/llvm-project/issues/64186
|