Skip to content

Commit 1f81ab8

Browse files
committed
Fix test failure
Signed-off-by: Till Schneidereit <[email protected]>
1 parent dc4c86f commit 1f81ab8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.devcontainer/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
rustup update stable && rustup default stable && rustup component add clippy rustfmt
33

44
# Installs wasm32 compiler targets
5-
rustup target add wasm32-wasip1 wasm32-unknown-unknown
5+
rustup target add wasm32-wasip1 wasm32-wasip2 wasm32-unknown-unknown

build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ fn main() {
5858

5959
println!(
6060
r#"
61-
error: the `wasm32-wasip1` target is not installed
62-
= help: consider downloading the target with `rustup{toolchain_override} target add wasm32-wasip1`"#
61+
error: the `wasm32-wasip2` target is not installed
62+
= help: consider downloading the target with `rustup{toolchain_override} target add wasm32-wasip2`"#
6363
);
6464
process::exit(1);
6565
}
@@ -74,7 +74,7 @@ error: the `wasm32-wasip1` target is not installed
7474
fn build_wasm_test_program(name: &'static str, root: &'static str) {
7575
build_target_dep(root, Path::new("target/test-programs").join(name))
7676
.release()
77-
.target("wasm32-wasip1")
77+
.target("wasm32-wasip2")
7878
.build();
7979
println!("cargo:rerun-if-changed={root}/Cargo.toml");
8080
println!("cargo:rerun-if-changed={root}/Cargo.lock");
@@ -84,7 +84,7 @@ fn build_wasm_test_program(name: &'static str, root: &'static str) {
8484
fn has_wasm32_wasi_target() -> bool {
8585
// Using rustc here for systems that don't have rustup
8686
let output = run(
87-
vec!["rustc", "--print=target-libdir", "--target=wasm32-wasip1"],
87+
vec!["rustc", "--print=target-libdir", "--target=wasm32-wasip2"],
8888
None,
8989
None,
9090
);
@@ -109,7 +109,7 @@ fn cargo_build(dir: &str) {
109109
"cargo",
110110
"build",
111111
"--target",
112-
"wasm32-wasip1",
112+
"wasm32-wasip2",
113113
"--release",
114114
// Ensure that even if `CARGO_TARGET_DIR` is set
115115
// that we're still building into the right dir.

0 commit comments

Comments
 (0)