Don't require a C compiler on wasm32

This commit is contained in:
John Kåre Alsaker 2019-04-09 16:29:50 +02:00
parent 81a1121341
commit b70124ed47

View File

@ -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) {