2 #![unstable(feature = "panic_unwind", issue = "32837")]
4 #![deny(rust_2018_idioms)]
8 #![feature(staged_api)]
9 #![feature(unwind_attributes)]
10 #![feature(static_nobundle)]
12 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
18 if #[cfg(target_env = "msvc")] {
19 // no extra unwinder support needed
20 } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
21 // no unwinder on the system!
28 #[cfg(target_env = "musl")]
29 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
30 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]