Skip to content

Commit 06210e1

Browse files
authored
Add a minimal config.toml
1 parent e2e3d96 commit 06210e1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/doc/rustc/src/platform-support/wasm32-unknown-emscripten.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,19 @@ source ./emsdk/emsdk_env.sh
5959
Building this target can be done by:
6060

6161
* Configure the `wasm32-unknown-emscripten` target to get built.
62-
* Configure LLD to be built.
6362
* Ensure the `WebAssembly` target backend is not disabled in LLVM.
6463

6564
These are all controlled through `config.toml` options. It should be possible
66-
to build this target on any platform.
65+
to build this target on any platform. A minimal example configuration would be:
66+
67+
```toml
68+
[llvm]
69+
targets = "WebAssembly"
70+
71+
[build]
72+
build-stage = 1
73+
target = ["wasm32-unknown-emscripten"]
74+
```
6775

6876
## Building Rust programs
6977

0 commit comments

Comments
 (0)