Skip to content

Commit 9b98ac5

Browse files
committed
Fix querying emcc on windows (use emcc.bat)
1 parent 0f9f8c9 commit 9b98ac5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,12 @@ fn which_freebsd() -> Option<i32> {
212212
}
213213

214214
fn emcc_version_code() -> Option<u64> {
215+
#[cfg(target_os = "windows")]
216+
let output = Command::new("emcc.bat").arg("-dumpversion").output().ok()?;
217+
218+
#[cfg(not(target_os = "windows"))]
215219
let output = Command::new("emcc").arg("-dumpversion").output().ok()?;
220+
216221
if !output.status.success() {
217222
return None;
218223
}

0 commit comments

Comments
 (0)