From 20c6151c0ab9634716dc6c44479e2983ef585bb9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 31 Aug 2016 20:39:59 +0000 Subject: [PATCH] Support emscripten --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(|| {