Skip to content

Commit a251320

Browse files
yoshuawuytsNoratrieb
authored andcommitted
Rename wasm32-wasi to wasm32-wasip1
1 parent 88cc553 commit a251320

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/building/how-to-build-and-run.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ want to build this component:
295295
To produce a compiler that can cross-compile for other targets,
296296
pass any number of `target` flags to `x build`.
297297
For example, if your host platform is `x86_64-unknown-linux-gnu`
298-
and your cross-compilation target is `wasm32-wasi`, you can build with:
298+
and your cross-compilation target is `wasm32-wasip1`, you can build with:
299299

300300
```bash
301-
./x build --target x86_64-unknown-linux-gnu,wasm32-wasi
301+
./x build --target x86_64-unknown-linux-gnu,wasm32-wasip1
302302
```
303303

304304
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:
310310

311311
```toml
312312
[build]
313-
target = ["x86_64-unknown-linux-gnu", "wasm32-wasi"]
313+
target = ["x86_64-unknown-linux-gnu", "wasm32-wasip1"]
314314
```
315315

316316
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
331331
then once you have built your compiler you will be able to use it to cross-compile like so:
332332

333333
```bash
334-
cargo +stage1 build --target wasm32-wasi
334+
cargo +stage1 build --target wasm32-wasip1
335335
```
336336

337337
## Other `x` commands

0 commit comments

Comments
 (0)