These targets don't link statically to libunwind or libc
}
// Make sure musl-root is valid if specified
- if target.contains("musl") {
+ if target.contains("musl") && target.contains("x86_64") {
match build.config.musl_root {
Some(ref root) => {
if fs::metadata(root.join("lib/libc.a")).is_err() {
}
if target.contains("unknown-linux") {
- if target.contains("musl") {
+ if target.contains("musl") && target.contains("x86_64") {
println!("cargo:rustc-link-lib=static=unwind");
} else {
println!("cargo:rustc-link-lib=dl");