]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
submodule: update rls from c9d25b667a to f331ff7
[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 #[macro_use]
13 mod macros;
14
15 cfg_if! {
16     if #[cfg(target_env = "msvc")] {
17         // no extra unwinder support needed
18     } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
19         // no unwinder on the system!
20     } else {
21         extern crate libc;
22         mod libunwind;
23         pub use libunwind::*;
24     }
25 }
26
27 #[cfg(target_env = "musl")]
28 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
29 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
30 extern {}