X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibunwind%2Flib.rs;h=461b49aa363b4406716d1f2af76bb3e2a98abf4a;hb=eb8f2586ebd842dec49d3d7f50e49a985ab31493;hp=1ff0a1e19d7b312e6a3f12bfd3bdd60d577fab47;hpb=a3f0ee9a7b17d522bfc6385f841d040445730f28;p=rust.git diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs index 1ff0a1e19d7..461b49aa363 100644 --- a/src/libunwind/lib.rs +++ b/src/libunwind/lib.rs @@ -9,8 +9,6 @@ // except according to those terms. #![no_std] -#![crate_name = "unwind"] -#![crate_type = "rlib"] #![unstable(feature = "panic_unwind", issue = "32837")] #![deny(warnings)] @@ -30,7 +28,7 @@ #[cfg(not(target_env = "msvc"))] pub use libunwind::*; -#[cfg(target_env = "musl")] -#[link(name = "unwind", kind = "static-nobundle", cfg(target_feature = "crt-static"))] +#[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 {}