Skip to content

Commit 7c5d05e

Browse files
committed
Add wasi target definition
1 parent c4574de commit 7c5d05e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,8 @@ impl Build {
17361736
}
17371737
} else if target.contains("cloudabi") {
17381738
format!("{}-{}", target, traditional)
1739+
} else if target == "wasm32-unknown-wasi" {
1740+
"clang".to_string()
17391741
} else if self.get_host()? != target {
17401742
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
17411743
let cc_env = self.getenv("CROSS_COMPILE");

0 commit comments

Comments
 (0)