diff --git a/src/build_context.rs b/src/build_context.rs index 2a7161f45..52e79534d 100644 --- a/src/build_context.rs +++ b/src/build_context.rs @@ -1231,7 +1231,7 @@ fn emscripten_version() -> Result { fn emcc_version() -> Result { use std::process::Command; - let emcc = Command::new("emcc") + let emcc = Command::new(if cfg!(windows) { "emcc.bat" } else { "emcc" }) .arg("-dumpversion") .output() .context("Failed to run emcc to get the version")?;