diff --git a/build.rs b/build.rs index ac6a6d81e..dda3059a6 100644 --- a/build.rs +++ b/build.rs @@ -619,7 +619,7 @@ fn configure_cc(c: &mut cc::Build, target: &Target, include_dir: &Path) { // Allow cross-compiling without a target sysroot for these targets. // // poly1305_vec.c requires which requires . - if (target.arch == "wasm32" && target.os == "unknown") + if (target.arch == "wasm32") || (target.os == "linux" && target.is_musl && target.arch != "x86_64") { if let Ok(compiler) = c.try_get_compiler() {