diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-10-30 17:33:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-30 17:33:16 +0100 |
| commit | 99b032f9ffba4c9752e7d8d90afca2f3d76550bd (patch) | |
| tree | 499236b080bb7ddc0b7006140f8e86035b74a311 /src/bootstrap | |
| parent | 73100d8e93230aa78f8f7229fb1107c881e799bb (diff) | |
| parent | 5e6c313cafd636bf54973d64875ebeba635dc612 (diff) | |
| download | rust-99b032f9ffba4c9752e7d8d90afca2f3d76550bd.tar.gz rust-99b032f9ffba4c9752e7d8d90afca2f3d76550bd.zip | |
Rollup merge of #117356 - he32:netbsd-mipsel, r=oli-obk
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"); |
