]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
Rollup merge of #57368 - petrhosek:cmake-compiler-launcher, r=alexcrichton
[rust.git] / src / libunwind / lib.rs
1 #![no_std]
2 #![unstable(feature = "panic_unwind", issue = "32837")]
3
4 #![feature(cfg_target_vendor)]
5 #![feature(link_cfg)]
6 #![feature(nll)]
7 #![feature(staged_api)]
8 #![feature(unwind_attributes)]
9 #![feature(static_nobundle)]
10
11 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
12
13 #[macro_use]
14 mod macros;
15
16 cfg_if! {
17     if #[cfg(target_env = "msvc")] {
18         // no extra unwinder support needed
19     } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
20         // no unwinder on the system!
21     } else {
22         extern crate libc;
23         mod libunwind;
24         pub use libunwind::*;
25     }
26 }
27
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")))]
31 extern {}