We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e3d96 commit 06210e1Copy full SHA for 06210e1
src/doc/rustc/src/platform-support/wasm32-unknown-emscripten.md
@@ -59,11 +59,19 @@ source ./emsdk/emsdk_env.sh
59
Building this target can be done by:
60
61
* Configure the `wasm32-unknown-emscripten` target to get built.
62
-* Configure LLD to be built.
63
* Ensure the `WebAssembly` target backend is not disabled in LLVM.
64
65
These are all controlled through `config.toml` options. It should be possible
66
-to build this target on any platform.
+to build this target on any platform. A minimal example configuration would be:
+
67
+```toml
68
+[llvm]
69
+targets = "WebAssembly"
70
71
+[build]
72
+build-stage = 1
73
+target = ["wasm32-unknown-emscripten"]
74
+```
75
76
## Building Rust programs
77
0 commit comments