about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYosh <github@yosh.is>2023-04-21 16:47:49 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-06-23 20:21:42 +0200
commitb1633a8d837fd76588db9be3b36a8d454473b40a (patch)
tree7ed579d825051f371c516f58b6e313541b994c69 /src/doc/rustc-dev-guide
parent61fb0c61f07a5e3b3203cece07454f97b82edd22 (diff)
downloadrust-b1633a8d837fd76588db9be3b36a8d454473b40a.tar.gz
rust-b1633a8d837fd76588db9be3b36a8d454473b40a.zip
Rename `wasm32-wasi` to `wasm32-wasip1`
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md b/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
index 3361359782e..5adf18816ed 100644
--- a/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
+++ b/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
@@ -295,10 +295,10 @@ want to build this component:
 To produce a compiler that can cross-compile for other targets,
 pass any number of `target` flags to `x build`.
 For example, if your host platform is `x86_64-unknown-linux-gnu`
-and your cross-compilation target is `wasm32-wasi`, you can build with:
+and your cross-compilation target is `wasm32-wasip1`, you can build with:
 
 ```bash
-./x build --target x86_64-unknown-linux-gnu,wasm32-wasi
+./x build --target x86_64-unknown-linux-gnu,wasm32-wasip1
 ```
 
 Note that if you want the resulting compiler to be able to build crates that
@@ -310,7 +310,7 @@ you can configure this in the `[build]` section of your `config.toml` like so:
 
 ```toml
 [build]
-target = ["x86_64-unknown-linux-gnu", "wasm32-wasi"]
+target = ["x86_64-unknown-linux-gnu", "wasm32-wasip1"]
 ```
 
 Note that building for some targets requires having external dependencies installed
@@ -331,7 +331,7 @@ If you have followed the directions from the prior section on creating a rustup
 then once you have built your compiler you will be able to use it to cross-compile like so:
 
 ```bash
-cargo +stage1 build --target wasm32-wasi
+cargo +stage1 build --target wasm32-wasip1
 ```
 
 ## Other `x` commands