@@ -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
7474fn 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) {
8484fn 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