Browse Source

Merge pull request #99 from brson/emcc

Support emscripten
vs2017
Alex Crichton 8 years ago
committed by GitHub
parent
commit
33177f01b0
  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