From 8084e0f3f6acfe1202384d36184ebef479bf93d5 Mon Sep 17 00:00:00 2001 From: Koji AGAWA Date: Sun, 5 May 2024 01:38:23 +0900 Subject: [PATCH] fix: emscripten build on windows (#1054) --- src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 99c2fd9c..2a47ac31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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());