File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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:
295295To produce a compiler that can cross-compile for other targets,
296296pass any number of ` target ` flags to ` x build ` .
297297For 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
304304Note 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
316316Note 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
331331then 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
You can’t perform that action at this time.
0 commit comments