Skip to content

Commit

Permalink
Don't build in-tree llvm-libunwind if system-llvm-libunwind is enable
Browse files Browse the repository at this point in the history
  • Loading branch information
12101111 committed Jan 9, 2021
1 parent 26438b4 commit 5de0680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/unwind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
{
Expand Down

0 comments on commit 5de0680

Please sign in to comment.