Rollup merge of #117356 - he32:netbsd-mipsel, r=oli-obk

Add support for mipsel-unknown-netbsd, 32-bit LE mips.
This commit is contained in:
Guillaume Gomez 2023-10-30 17:33:16 +01:00 committed by GitHub
commit 99b032f9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 0 deletions

View file

@ -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");