diff options
| author | Samuel Holland <samuel@sholland.org> | 2017-08-24 08:37:06 -0500 |
|---|---|---|
| committer | Samuel Holland <samuel@sholland.org> | 2017-08-24 11:11:55 -0500 |
| commit | dbcaf6c80aeb5be4fe09f157febc47bc52710616 (patch) | |
| tree | 21c3e0c777c16db43f693aadb85a4292ca709da3 | |
| parent | a125ec918fc228fc20da4642d17bc178a99a5d72 (diff) | |
Do not assume libunwind.a is available
| -rw-r--r-- | src/libunwind/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs index 1ff0a1e19d7..2f425d8e986 100644 --- a/src/libunwind/lib.rs +++ b/src/libunwind/lib.rs @@ -30,7 +30,7 @@ mod libunwind; #[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 {} |
