diff options
Diffstat (limited to 'library/unwind/src/lib.rs')
| -rw-r--r-- | library/unwind/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/unwind/src/lib.rs b/library/unwind/src/lib.rs index 46026324d2f..36414c0fb90 100644 --- a/library/unwind/src/lib.rs +++ b/library/unwind/src/lib.rs @@ -180,3 +180,8 @@ cfg_if::cfg_if! { #[cfg(target_os = "hurd")] #[link(name = "gcc_s")] extern "C" {} + +#[cfg(all(target_os = "windows", target_env = "gnu", target_abi = "llvm"))] +#[link(name = "unwind", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))] +#[link(name = "unwind", cfg(not(target_feature = "crt-static")))] +extern "C" {} |
