diff options
| author | Havard Eidnes <he@NetBSD.org> | 2023-10-29 12:39:30 +0000 |
|---|---|---|
| committer | Havard Eidnes <he@NetBSD.org> | 2023-10-29 12:39:30 +0000 |
| commit | 82b447a0cc47c5b476fb85eaeba865c97490f93f (patch) | |
| tree | b385713bafc5a54746fc79c4de96a63e54d65af7 /src/bootstrap | |
| parent | bbcc1691a4646a6d2ebb2189bdff5b878407fbe6 (diff) | |
Add support for mipsel-unknown-netbsd, 32-bit LE mips.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/llvm.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 24351118a5a..5b454307721 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -396,6 +396,12 @@ impl Step for Llvm { ldflags.shared.push(" -latomic"); } + if target.starts_with("mips") && target.contains("netbsd") { + // LLVM wants 64-bit atomics, while mipsel is 32-bit only, so needs -latomic + ldflags.exe.push(" -latomic"); + ldflags.shared.push(" -latomic"); + } + if target.contains("msvc") { cfg.define("LLVM_USE_CRT_DEBUG", "MT"); cfg.define("LLVM_USE_CRT_RELEASE", "MT"); |
