From 2986d15484c01f2f367ec758eebb5ccaf31241b0 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 14 Oct 2023 13:49:09 -0700 Subject: [PATCH] Use `-nostdlibinc` for wasm32-wasi like `wasm32-unknown-unknown`. --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {