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 @@ -295,10 +295,10 @@ want to build this component:
295
295
To produce a compiler that can cross-compile for other targets,
296
296
pass any number of ` target ` flags to ` x build ` .
297
297
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:
299
299
300
300
``` bash
301
- ./x build --target x86_64-unknown-linux-gnu,wasm32-wasi
301
+ ./x build --target x86_64-unknown-linux-gnu,wasm32-wasip1
302
302
```
303
303
304
304
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:
310
310
311
311
``` toml
312
312
[build ]
313
- target = [" x86_64-unknown-linux-gnu" , " wasm32-wasi " ]
313
+ target = [" x86_64-unknown-linux-gnu" , " wasm32-wasip1 " ]
314
314
```
315
315
316
316
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
331
331
then once you have built your compiler you will be able to use it to cross-compile like so:
332
332
333
333
``` bash
334
- cargo +stage1 build --target wasm32-wasi
334
+ cargo +stage1 build --target wasm32-wasip1
335
335
```
336
336
337
337
## Other ` x ` commands
You can’t perform that action at this time.
0 commit comments