Browse Source

Support emscripten

vs2017
Brian Anderson 8 years ago
parent
commit
20c6151c0a
  1. 10
      src/lib.rs

10
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(|| {

Loading…
Cancel
Save