]>
Commit | Line | Data |
---|---|---|
a7813a04 | 1 | #![no_std] |
a7813a04 | 2 | #![unstable(feature = "panic_unwind", issue = "32837")] |
7453a54e | 3 | |
9fa01778 XL |
4 | #![deny(rust_2018_idioms)] |
5 | ||
3b2f2976 | 6 | #![feature(link_cfg)] |
0bf4aa26 | 7 | #![feature(nll)] |
a7813a04 XL |
8 | #![feature(staged_api)] |
9 | #![feature(unwind_attributes)] | |
cc61c64b | 10 | #![feature(static_nobundle)] |
7453a54e | 11 | |
a7813a04 | 12 | #![cfg_attr(not(target_env = "msvc"), feature(libc))] |
7453a54e | 13 | |
dc9dc135 | 14 | cfg_if::cfg_if! { |
abe05a73 XL |
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! | |
19 | } else { | |
abe05a73 XL |
20 | mod libunwind; |
21 | pub use libunwind::*; | |
22 | } | |
23 | } | |
3b2f2976 | 24 | |
2c00a5a8 | 25 | #[cfg(target_env = "musl")] |
3b2f2976 XL |
26 | #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))] |
27 | #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))] | |
28 | extern {} |