Skip to content

Commit 00c5c39

Browse files
committedJan 11, 2021
Auto merge of #80818 - 12101111:system-libunwind, r=Mark-Simulacrum
Don't build in-tree llvm-libunwind if system-llvm-libunwind is enable When "system-llvm-libunwind" is enabled, some target eg. musl still build in-tree llvm-libunwind which is useless.
2 parents 26d451f + 5de0680 commit 00c5c39

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)
Please sign in to comment.