From b70124ed479bbdd846240ec14c44676687eeaba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Tue, 9 Apr 2019 16:29:50 +0200 Subject: [PATCH] Don't require a C compiler on wasm32 --- src/bootstrap/sanity.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index b9f456e91003..fa6857cdc112 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) {