Skip to content

Commit

Permalink
Fix querying emcc on windows (use emcc.bat)
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Jan 23, 2025
1 parent 0f9f8c9 commit 9b98ac5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ fn which_freebsd() -> Option<i32> {
}

fn emcc_version_code() -> Option<u64> {
#[cfg(target_os = "windows")]
let output = Command::new("emcc.bat").arg("-dumpversion").output().ok()?;

#[cfg(not(target_os = "windows"))]
let output = Command::new("emcc").arg("-dumpversion").output().ok()?;

if !output.status.success() {
return None;
}
Expand Down

0 comments on commit 9b98ac5

Please sign in to comment.