File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 35
35
- template : ci/azure-install-rust.yml
36
36
- script : rustup target add wasm32-unknown-unknown
37
37
- script : cargo build --target wasm32-unknown-unknown
38
+ - job : wasi
39
+ steps :
40
+ - template : ci/azure-install-rust.yml
41
+ parameters :
42
+ toolchain : nightly
43
+ - script : rustup target add wasm32-wasi
44
+ - script : cargo build --target wasm32-wasi
38
45
- job : rust_backend
39
46
steps :
40
47
- template : ci/azure-install-rust.yml
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::env;
4
4
5
5
fn main ( ) {
6
6
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
7
- if target == "wasm32-unknown-unknown" {
7
+ if target. starts_with ( "wasm32-" ) && !target . ends_with ( "-emscripten" ) {
8
8
return ;
9
9
}
10
10
let mut build = cc:: Build :: new ( ) ;
You can’t perform that action at this time.
0 commit comments