Skip to content

Commit 3eb16a8

Browse files
authored
Use emcc.bat to query version on Windows (#2478)
rust-lang/libc#4248
1 parent 352c1fe commit 3eb16a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build_context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ fn emscripten_version() -> Result<String> {
12311231
fn emcc_version() -> Result<String> {
12321232
use std::process::Command;
12331233

1234-
let emcc = Command::new("emcc")
1234+
let emcc = Command::new(if cfg!(windows) { "emcc.bat" } else { "emcc" })
12351235
.arg("-dumpversion")
12361236
.output()
12371237
.context("Failed to run emcc to get the version")?;

0 commit comments

Comments
 (0)