diff --git a/src/lib.rs b/src/lib.rs index f303bc0..f7a6341 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -661,6 +661,16 @@ impl Config { t.args.push(arg.into()); } return t + }).or_else(|| { + if target.contains("emscripten") { + if self.cpp { + Some(Tool::new(PathBuf::from("em++"))) + } else { + Some(Tool::new(PathBuf::from("emcc"))) + } + } else { + None + } }).or_else(|| { windows_registry::find_tool(&target, "cl.exe") }).unwrap_or_else(|| {