Skip to content

Commit

Permalink
Merge pull request #402 from sunfishcode/master
Browse files Browse the repository at this point in the history
Recognize the "wasm32-wasi" target tuple.
  • Loading branch information
alexcrichton authored May 14, 2019
2 parents ab757d2 + dfbbc05 commit 668fde3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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-"
Expand Down

0 comments on commit 668fde3

Please sign in to comment.