]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
Rollup merge of #58269 - taeguk:add-some-sources-to-rust-src-distribution, r=Mark...
[rust.git] / src / libunwind / lib.rs
1 #![no_std]
2 #![unstable(feature = "panic_unwind", issue = "32837")]
3
4 #![deny(rust_2018_idioms)]
5
6 #![feature(link_cfg)]
7 #![feature(nll)]
8 #![feature(staged_api)]
9 #![feature(unwind_attributes)]
10 #![feature(static_nobundle)]
11
12 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
13
14 #[macro_use]
15 mod macros;
16
17 cfg_if! {
18     if #[cfg(target_env = "msvc")] {
19         // no extra unwinder support needed
20     } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
21         // no unwinder on the system!
22     } else {
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 {}