Skip to content

Commit 304a7b7

Browse files
committed
Link against -lunwind on CloudABI.
CloudABI makes use of LLVM's libunwind to do stack unwinding. It is installed under the name libunwind.a.
1 parent 503153e commit 304a7b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libunwind/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ fn main() {
4343
println!("cargo:rustc-link-lib=gcc_s");
4444
} else if target.contains("redox") {
4545
println!("cargo:rustc-link-lib=gcc");
46+
} else if target.contains("cloudabi") {
47+
println!("cargo:rustc-link-lib=unwind");
4648
}
4749
}

0 commit comments

Comments
 (0)