]> git.lizzy.rs Git - rust.git/blobdiff - library/unwind/build.rs
Remove unsafe impl Send for CompletedTest & TestResult
[rust.git] / library / unwind / build.rs
index 24bcd40c3a8eee89af9fe84691754af102debe56..694e6b98c82e349eed1aa6e5bf2863e0de576f76 100644 (file)
@@ -4,6 +4,10 @@ fn main() {
     println!("cargo:rerun-if-changed=build.rs");
     let target = env::var("TARGET").expect("TARGET was not set");
 
+    if cfg!(feature = "system-llvm-libunwind") {
+        return;
+    }
+
     if cfg!(feature = "llvm-libunwind")
         && ((target.contains("linux") && !target.contains("musl")) || target.contains("fuchsia"))
     {
@@ -44,8 +48,6 @@ fn main() {
         println!("cargo:rustc-link-lib=gcc_s");
     } else if target.contains("redox") {
         // redox is handled in lib.rs
-    } else if target.contains("cloudabi") {
-        println!("cargo:rustc-link-lib=unwind");
     }
 }