Skip to content

Commit

Permalink
fix: emscripten build on windows (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
atty303 authored May 4, 2024
1 parent 3637304 commit 8084e0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2812,11 +2812,9 @@ impl Build {
let tool = if self.cpp { "em++" } else { "emcc" };
// Windows uses bat file so we have to be a bit more specific
if cfg!(windows) {
let mut t = Tool::new(
let mut t = Tool::with_family(
PathBuf::from("cmd"),
&self.cached_compiler_family,
&self.cargo_output,
out_dir,
ToolFamily::Clang { zig_cc: false },
);
t.args.push("/c".into());
t.args.push(format!("{}.bat", tool).into());
Expand Down

0 comments on commit 8084e0f

Please sign in to comment.