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))]
15 if #[cfg(target_env = "msvc")] {
16 // no extra unwinder support needed
17 } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
18 // no unwinder on the system!
25 #[cfg(target_env = "musl")]
26 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
27 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]