Skip to content

Commit 4c129c0

Browse files
committed
fix(bootstrap): change compiler detection for all wasm targets
1 parent 6083188 commit 4c129c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/sanity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ than building it.
315315
.or_insert_with(|| Target::from_triple(&target.triple));
316316

317317
// compiler-rt c fallbacks for wasm cannot be built with gcc
318-
if (target.triple == "wasm32-unknown-unknown" || target.triple == "wasm32v1-none") // bare metal targets without wasi sdk
318+
if target.contains("wasm") // bare metal targets without wasi sdk
319319
&& (build.config.optimized_compiler_builtins(*target)
320320
|| build.config.rust_std_features.contains("compiler-builtins-c"))
321321
{

0 commit comments

Comments
 (0)