Skip to content

Commit 98f9bba

Browse files
committed
libunwind: Use libunwind when targeting UWP
libgcc's support is using forbidden functions
1 parent e5d7043 commit 98f9bba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libunwind/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ fn main() {
2828
println!("cargo:rustc-link-lib=gcc_s");
2929
} else if target.contains("dragonfly") {
3030
println!("cargo:rustc-link-lib=gcc_pic");
31-
} else if target.contains("windows-gnu") {
31+
} else if target.contains("pc-windows-gnu") {
3232
println!("cargo:rustc-link-lib=static-nobundle=gcc_eh");
3333
println!("cargo:rustc-link-lib=static-nobundle=pthread");
34+
} else if target.contains("uwp-windows-gnu") {
35+
println!("cargo:rustc-link-lib=unwind");
3436
} else if target.contains("fuchsia") {
3537
println!("cargo:rustc-link-lib=unwind");
3638
} else if target.contains("haiku") {

0 commit comments

Comments
 (0)