File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,10 @@ want to build this component:
218
218
To produce a compiler that can cross-compile for other targets,
219
219
pass any number of ` target ` flags to ` x.py build ` .
220
220
For example, if your host platform is ` x86_64-unknown-linux-gnu `
221
- and your cross-compilation target is ` wasm32-wasi ` , you can build with:
221
+ and your cross-compilation target is ` wasm32-wasi-preview1 ` , you can build with:
222
222
223
223
``` bash
224
- ./x.py build --target x86_64-unknown-linux-gnu --target wasm32-wasi
224
+ ./x.py build --target x86_64-unknown-linux-gnu --target wasm32-wasi-preview1
225
225
```
226
226
227
227
Note that if you want the resulting compiler to be able to build crates that
@@ -233,7 +233,7 @@ you can configure this in the `[build]` section of your `config.toml` like so:
233
233
234
234
``` toml
235
235
[build ]
236
- target = [" x86_64-unknown-linux-gnu" , " wasm32-wasi" ]
236
+ target = [" x86_64-unknown-linux-gnu" , " wasm32-wasi-preview1 " ]
237
237
```
238
238
239
239
Note that building for some targets requires having external dependencies installed
@@ -254,7 +254,7 @@ If you have followed the directions from the prior section on creating a rustup
254
254
then once you have built your compiler you will be able to use it to cross-compile like so:
255
255
256
256
``` bash
257
- cargo +stage1 build --target wasm32-wasi
257
+ cargo +stage1 build --target wasm32-wasi-preview1
258
258
```
259
259
260
260
## Other ` x.py ` commands
You can’t perform that action at this time.
0 commit comments