Skip to content

Commit

Permalink
Don't build any native compiler-builtin components for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Feb 6, 2017
1 parent b914905 commit c30dcb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");

let target = env::var("TARGET").unwrap();

// Emscripten's runtime includes all the builtins
if target.contains("emscripten") {
return;
}

let Cfg { ref target_arch, ref target_os, ref target_env, ref target_vendor, .. } =
Cfg::new(&target).unwrap_or_else(|e| {
writeln!(io::stderr(), "{}", e).ok();
Expand Down

0 comments on commit c30dcb0

Please sign in to comment.