]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
Auto merge of #63089 - kennytm:use-try-run-for-linkchecker, r=Mark-Simulacrum
[rust.git] / src / libunwind / lib.rs
1 #![no_std]
2 #![unstable(feature = "panic_unwind", issue = "32837")]
3
4 #![feature(link_cfg)]
5 #![feature(nll)]
6 #![feature(staged_api)]
7 #![feature(unwind_attributes)]
8 #![feature(static_nobundle)]
9
10 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
11
12 cfg_if::cfg_if! {
13     if #[cfg(target_env = "msvc")] {
14         // no extra unwinder support needed
15     } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
16         // no unwinder on the system!
17     } else {
18         mod libunwind;
19         pub use libunwind::*;
20     }
21 }
22
23 #[cfg(target_env = "musl")]
24 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
25 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
26 extern {}