Skip to content

Commit 642f8cd

Browse files
committed
libunwind: Use libunwind when targeting UWP
libgcc's support is using forbidden functions
1 parent 3becaf4 commit 642f8cd

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
@@ -30,9 +30,11 @@ fn main() {
3030
println!("cargo:rustc-link-lib=gcc_s");
3131
} else if target.contains("dragonfly") {
3232
println!("cargo:rustc-link-lib=gcc_pic");
33-
} else if target.contains("windows-gnu") {
33+
} else if target.contains("pc-windows-gnu") {
3434
println!("cargo:rustc-link-lib=static-nobundle=gcc_eh");
3535
println!("cargo:rustc-link-lib=static-nobundle=pthread");
36+
} else if target.contains("uwp-windows-gnu") {
37+
println!("cargo:rustc-link-lib=unwind");
3638
} else if target.contains("fuchsia") {
3739
println!("cargo:rustc-link-lib=unwind");
3840
} else if target.contains("haiku") {

0 commit comments

Comments
 (0)