Skip to content

Commit

Permalink
Rename wasm32-wasi to wasm32-wasi-preview1
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Apr 21, 2023
1 parent a4a1a7c commit 3038e4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/building/how-to-build-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,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.py 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-wasi-preview1`, you can build with:

```bash
./x.py build --target x86_64-unknown-linux-gnu --target wasm32-wasi
./x.py build --target x86_64-unknown-linux-gnu --target wasm32-wasi-preview1
```

Note that if you want the resulting compiler to be able to build crates that
Expand All @@ -233,7 +233,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-wasi-preview1"]
```

Note that building for some targets requires having external dependencies installed
Expand All @@ -254,7 +254,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-wasi-preview1
```

## Other `x.py` commands
Expand Down

0 comments on commit 3038e4f

Please sign in to comment.