about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorHavard Eidnes <he@NetBSD.org>2023-07-05 10:34:26 +0000
committerHavard Eidnes <he@NetBSD.org>2023-07-05 13:49:01 +0000
commit6cc37bbee074bb2746d8cfe4456c1d88f7db5c2f (patch)
tree23c6fc7e0f9a6a7c2ff8d0bcda9c8aeeba20c7a1 /src/bootstrap
parent6dab6dc5fcd9655adfa7bfb3e59e5cae487184d2 (diff)
Add support for NetBSD/riscv64 aka. riscv64gc-unknown-netbsd.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/llvm.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/llvm.rs b/src/bootstrap/llvm.rs
index 4752b1f7ea1..c4916a21c0f 100644
--- a/src/bootstrap/llvm.rs
+++ b/src/bootstrap/llvm.rs
@@ -380,7 +380,10 @@ impl Step for Llvm {
             cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
         }
 
-        if target.starts_with("riscv") && !target.contains("freebsd") && !target.contains("openbsd")
+        if target.starts_with("riscv")
+            && !target.contains("freebsd")
+            && !target.contains("openbsd")
+            && !target.contains("netbsd")
         {
             // RISC-V GCC erroneously requires linking against
             // `libatomic` when using 1-byte and 2-byte C++