From dfbbc0557387244c7ff5c3cc741d484c8ae3ce49 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 30 Apr 2019 16:46:27 -0700 Subject: [PATCH] Recognize the "wasm32-wasi" target tuple. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 84acb7b..9fef147 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1751,7 +1751,9 @@ impl Build { } } else if target.contains("cloudabi") { format!("{}-{}", target, traditional) - } else if target == "wasm32-unknown-wasi" || target == "wasm32-unknown-unknown" { + } else if target == "wasm32-wasi" || + target == "wasm32-unknown-wasi" || + target == "wasm32-unknown-unknown" { "clang".to_string() } else if self.get_host()? != target { // CROSS_COMPILE is of the form: "arm-linux-gnueabi-"