Skip to content

Commit 8084e0f

Browse files
authored
fix: emscripten build on windows (#1054)
1 parent 3637304 commit 8084e0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,11 +2812,9 @@ impl Build {
28122812
let tool = if self.cpp { "em++" } else { "emcc" };
28132813
// Windows uses bat file so we have to be a bit more specific
28142814
if cfg!(windows) {
2815-
let mut t = Tool::new(
2815+
let mut t = Tool::with_family(
28162816
PathBuf::from("cmd"),
2817-
&self.cached_compiler_family,
2818-
&self.cargo_output,
2819-
out_dir,
2817+
ToolFamily::Clang { zig_cc: false },
28202818
);
28212819
t.args.push("/c".into());
28222820
t.args.push(format!("{}.bat", tool).into());

0 commit comments

Comments
 (0)