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