We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec7da63 commit 45e3f61Copy full SHA for 45e3f61
build.rs
@@ -235,7 +235,18 @@ fn which_freebsd() -> Option<i32> {
235
}
236
237
fn emcc_version_code() -> Option<u64> {
238
- let output = Command::new("emcc").arg("-dumpversion").output().ok()?;
+ let output = if cfg!(target_os = "windows") {
239
+ std::process::Command::new("emcc.bat")
240
+ .arg("-dumpversion")
241
+ .output()
242
+ .ok()
243
+ } else {
244
+ std::process::Command::new("emcc")
245
246
247
248
+ }?;
249
+
250
if !output.status.success() {
251
return None;
252
0 commit comments