]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
Rollup merge of #44054 - frewsxcv:frewsxcv-libstd-thread-unwrap-or-else, r=sfackler
[rust.git] / src / libunwind / lib.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![no_std]
12 #![crate_name = "unwind"]
13 #![crate_type = "rlib"]
14 #![unstable(feature = "panic_unwind", issue = "32837")]
15 #![deny(warnings)]
16
17 #![feature(cfg_target_vendor)]
18 #![feature(link_cfg)]
19 #![feature(staged_api)]
20 #![feature(unwind_attributes)]
21 #![feature(static_nobundle)]
22
23 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
24
25 #[cfg(not(target_env = "msvc"))]
26 extern crate libc;
27
28 #[cfg(not(target_env = "msvc"))]
29 mod libunwind;
30 #[cfg(not(target_env = "msvc"))]
31 pub use libunwind::*;
32
33 #[cfg(target_env = "musl")]
34 #[link(name = "unwind", kind = "static-nobundle", cfg(target_feature = "crt-static"))]
35 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
36 extern {}