Commit c6d891e1 authored by Jeremy Soller's avatar Jeremy Soller

Link to gcc_eh for static unwind support on Redox

parent 365e7e2b
......@@ -25,7 +25,12 @@ cfg_if! {
}
}
#[cfg(any(target_env = "musl", target_os = "redox"))]
#[cfg(target_env = "musl")]
#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
extern {}
#[cfg(target_os = "redox")]
#[link(name = "gcc_eh", kind = "static-nobundle", cfg(target_feature = "crt-static"))]
#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
extern {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment