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"))
{
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");
}
}