Skip to content

Commit 5de0680

Browse files
committed
Don't build in-tree llvm-libunwind if system-llvm-libunwind is enable
1 parent 26438b4 commit 5de0680

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/unwind/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
55
let target = env::var("TARGET").expect("TARGET was not set");
66

7+
if cfg!(feature = "system-llvm-libunwind") {
8+
return;
9+
}
10+
711
if cfg!(feature = "llvm-libunwind")
812
&& ((target.contains("linux") && !target.contains("musl")) || target.contains("fuchsia"))
913
{

0 commit comments

Comments
 (0)