about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-04-09 16:29:50 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-04-10 21:17:32 +0200
commitb70124ed479bbdd846240ec14c44676687eeaba1 (patch)
tree9b5b79bf05d492889635012b6db050dff0b36b16 /src/bootstrap
parent81a1121341f4c5af6d224d25757fba0341b62b43 (diff)
downloadrust-b70124ed479bbdd846240ec14c44676687eeaba1.tar.gz
rust-b70124ed479bbdd846240ec14c44676687eeaba1.zip
Don't require a C compiler on wasm32
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/sanity.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index b9f456e9100..fa6857cdc11 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -131,6 +131,11 @@ pub fn check(build: &mut Build) {
             continue;
         }
 
+        // We don't use a C compiler on wasm32
+        if target.contains("wasm32") {
+            continue;
+        }
+
         if !build.config.dry_run {
             cmd_finder.must_have(build.cc(*target));
             if let Some(ar) = build.ar(*target) {