Skip to content

Commit 668fde3

Browse files
authored
Merge pull request #402 from sunfishcode/master
Recognize the "wasm32-wasi" target tuple.
2 parents ab757d2 + dfbbc05 commit 668fde3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,9 @@ impl Build {
17511751
}
17521752
} else if target.contains("cloudabi") {
17531753
format!("{}-{}", target, traditional)
1754-
} else if target == "wasm32-unknown-wasi" || target == "wasm32-unknown-unknown" {
1754+
} else if target == "wasm32-wasi" ||
1755+
target == "wasm32-unknown-wasi" ||
1756+
target == "wasm32-unknown-unknown" {
17551757
"clang".to_string()
17561758
} else if self.get_host()? != target {
17571759
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"

0 commit comments

Comments
 (0)