Skip to content

Commit 1606561

Browse files
committed
Fix querying emcc on windows (use emcc.bat)
1 parent ec7da63 commit 1606561

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@ fn which_freebsd() -> Option<i32> {
235235
}
236236

237237
fn emcc_version_code() -> Option<u64> {
238-
let output = Command::new("emcc").arg("-dumpversion").output().ok()?;
238+
let emcc = if cfg!(target_os = "windows") {
239+
"emcc.bat"
240+
} else {
241+
"emcc"
242+
};
243+
244+
let output = Command::new(emcc).arg("-dumpversion").output().ok()?;
239245
if !output.status.success() {
240246
return None;
241247
}

0 commit comments

Comments
 (0)