]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/native.rs
fix #101691: copy stage0 binaries into stage0-sysroot
[rust.git] / src / bootstrap / native.rs
index f803ae07149283f19eae5a85769ddb577d872abb..62b56994afe70e773b4ba587dfb18dd8d6f2dffb 100644 (file)
@@ -432,12 +432,13 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
             cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
         }
 
-        if target.starts_with("riscv") && !target.contains("freebsd") {
+        if target.starts_with("riscv") && !target.contains("freebsd") && !target.contains("openbsd")
+        {
             // RISC-V GCC erroneously requires linking against
             // `libatomic` when using 1-byte and 2-byte C++
             // atomics but the LLVM build system check cannot
             // detect this. Therefore it is set manually here.
-            // FreeBSD uses Clang as its system compiler and
+            // Some BSD uses Clang as its system compiler and
             // provides no libatomic in its base system so does
             // not want this.
             ldflags.exe.push(" -latomic");