File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn main() {
36
36
println ! ( "cargo:rustc-link-lib=gcc_s" ) ;
37
37
} else if target. contains ( "dragonfly" ) {
38
38
println ! ( "cargo:rustc-link-lib=gcc_pic" ) ;
39
- } else if target. contains ( "pc-windows-gnu" ) {
39
+ } else if target. ends_with ( "pc-windows-gnu" ) {
40
40
// This is handled in the target spec with late_link_args_[static|dynamic]
41
41
} else if target. contains ( "uwp-windows-gnu" ) {
42
42
println ! ( "cargo:rustc-link-lib=unwind" ) ;
Original file line number Diff line number Diff line change 5
5
#![ feature( nll) ]
6
6
#![ feature( staged_api) ]
7
7
#![ feature( c_unwind) ]
8
+ #![ feature( cfg_target_abi) ]
8
9
#![ cfg_attr( not( target_env = "msvc" ) , feature( libc) ) ]
9
10
10
11
cfg_if:: cfg_if! {
@@ -85,3 +86,7 @@ extern "C" {}
85
86
#[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ]
86
87
#[ link( name = "unwind" , kind = "static" , modifiers = "-bundle" ) ]
87
88
extern "C" { }
89
+
90
+ #[ cfg( all( target_os = "windows" , target_env = "gnu" , target_abi = "llvm" ) ) ]
91
+ #[ link( name = "unwind" , kind = "static" , modifiers = "-bundle" ) ]
92
+ extern "C" { }
You can’t perform that action at this time.
0 commit comments