X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibunwind%2Flib.rs;h=461b49aa363b4406716d1f2af76bb3e2a98abf4a;hb=eb8f2586ebd842dec49d3d7f50e49a985ab31493;hp=7fa2ce650fd6cea7d98459c612a85176047673a9;hpb=c4c6c49e526d39d8cdc8eb8072d2e45b4086dc82;p=rust.git diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs index 7fa2ce650fd..461b49aa363 100644 --- a/src/libunwind/lib.rs +++ b/src/libunwind/lib.rs @@ -9,14 +9,14 @@ // except according to those terms. #![no_std] -#![crate_name = "unwind"] -#![crate_type = "rlib"] #![unstable(feature = "panic_unwind", issue = "32837")] #![deny(warnings)] #![feature(cfg_target_vendor)] +#![feature(link_cfg)] #![feature(staged_api)] #![feature(unwind_attributes)] +#![feature(static_nobundle)] #![cfg_attr(not(target_env = "msvc"), feature(libc))] @@ -27,3 +27,8 @@ mod libunwind; #[cfg(not(target_env = "msvc"))] pub use libunwind::*; + +#[cfg(all(target_env = "musl", not(target_arch = "mips")))] +#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))] +#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))] +extern {}