Skip to content

Commit 8be8d8b

Browse files
committed
Change the way libunwind is linked for *-windows-gnullvm targets
1 parent 082fc0a commit 8be8d8b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

unwind/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,3 @@ extern "C" {}
104104
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
105105
#[link(name = "unwind", kind = "static", modifiers = "-bundle")]
106106
extern "C" {}
107-
108-
#[cfg(all(target_os = "windows", target_env = "gnu", target_abi = "llvm"))]
109-
#[link(name = "unwind", kind = "static", modifiers = "-bundle")]
110-
extern "C" {}

unwind/src/libunwind.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ pub type _Unwind_Exception_Cleanup_Fn =
9090
// rustc_codegen_ssa::src::back::symbol_export, rustc_middle::middle::exported_symbols
9191
// and RFC 2841
9292
#[cfg_attr(
93-
all(feature = "llvm-libunwind", any(target_os = "fuchsia", target_os = "linux")),
93+
any(
94+
all(feature = "llvm-libunwind", any(target_os = "fuchsia", target_os = "linux")),
95+
all(target_os = "windows", target_env = "gnu", target_abi = "llvm")
96+
),
9497
link(name = "unwind", kind = "static", modifiers = "-bundle")
9598
)]
9699
extern "C-unwind" {

0 commit comments

Comments
 (0)