2 #![unstable(feature = "panic_unwind", issue = "32837")]
5 #![feature(staged_api)]
6 #![feature(unwind_attributes)]
7 #![feature(static_nobundle)]
8 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
11 if #[cfg(target_env = "msvc")] {
12 // Windows MSVC no extra unwinder support needed
17 // These "unix" family members do not have unwinder.
18 // Note this also matches x86_64-linux-kernel.
23 target_os = "cloudabi",
24 all(target_vendor = "fortanix", target_env = "sgx"),
29 // no unwinder on the system!
30 // - wasm32 (not emscripten, which is "unix" family)
31 // - os=none ("bare metal" targets)
35 // - nvptx64-nvidia-cuda
36 // - Any new targets not listed above.
40 #[cfg(target_env = "musl")]
41 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
42 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
45 #[cfg(target_os = "redox")]
46 #[link(name = "gcc_eh", kind = "static-nobundle", cfg(target_feature = "crt-static"))]
47 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
50 #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
51 #[link(name = "unwind", kind = "static-nobundle")]