Skip to content

Commit

Permalink
libunwind: Use libunwind when targeting UWP
Browse files Browse the repository at this point in the history
libgcc's support is using forbidden functions
  • Loading branch information
chouquette committed Jul 25, 2019
1 parent 3becaf4 commit 642f8cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libunwind/build.rs
Expand Up @@ -30,9 +30,11 @@ fn main() {
println!("cargo:rustc-link-lib=gcc_s");
} else if target.contains("dragonfly") {
println!("cargo:rustc-link-lib=gcc_pic");
} else if target.contains("windows-gnu") {
} else if target.contains("pc-windows-gnu") {
println!("cargo:rustc-link-lib=static-nobundle=gcc_eh");
println!("cargo:rustc-link-lib=static-nobundle=pthread");
} else if target.contains("uwp-windows-gnu") {
println!("cargo:rustc-link-lib=unwind");
} else if target.contains("fuchsia") {
println!("cargo:rustc-link-lib=unwind");
} else if target.contains("haiku") {
Expand Down

0 comments on commit 642f8cd

Please sign in to comment.