Skip to content

Commit c30dcb0

Browse files
author
Jorge Aparicio
committed
Don't build any native compiler-builtin components for emscripten
rust-lang/rust#36339
1 parent b914905 commit c30dcb0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ fn main() {
5050
println!("cargo:rerun-if-changed=build.rs");
5151

5252
let target = env::var("TARGET").unwrap();
53+
54+
// Emscripten's runtime includes all the builtins
55+
if target.contains("emscripten") {
56+
return;
57+
}
58+
5359
let Cfg { ref target_arch, ref target_os, ref target_env, ref target_vendor, .. } =
5460
Cfg::new(&target).unwrap_or_else(|e| {
5561
writeln!(io::stderr(), "{}", e).ok();

0 commit comments

Comments
 (0)