Skip to content

Commit dee1b19

Browse files
committed
fix: allow emcc
1 parent 8b1dbac commit dee1b19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ than building it.
334334
|| build.config.rust_std_features.contains("compiler-builtins-c"))
335335
{
336336
let cc_tool = build.cc_tool(*target);
337-
if !cc_tool.is_like_clang() {
337+
if !cc_tool.is_like_clang() && !cc_tool.path().ends_with("emcc") {
338+
// emcc works as well
338339
panic!(
339340
"Clang is required to build C code for Wasm targets, got `{}` instead\n\
340341
this is because compiler-builtins is configured to build C source. Either \

0 commit comments

Comments
 (0)