summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2024-10-11 13:13:04 +0300
committerGitHub <noreply@github.com>2024-10-11 18:13:04 +0800
commitdfab34e4bf508fc517d4d645ebb3b6b1179a5003 (patch)
tree0a75a9618ffdbd0604145cade8dbaff7b2af01cd /docs
parent5fa35fcce532267a2ae5779dee9ff4d07fab6bf4 (diff)
Add slang-wasm target (#5237)
Support for exceptions is enabled, since Slang uses them for diagnostics. The size optimization arguments ('-Os') resolves some internal emscripten error during the slang-wasm.wasm linking step, which happens when enabling exceptions. ("parse exception: too many locals")
Diffstat (limited to 'docs')
-rw-r--r--docs/building.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/building.md b/docs/building.md
index da55f57aa..fa18ef60f 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -75,8 +75,8 @@ source ./emsdk_env # For Windows, emsdk_env.bat
popd
emcmake cmake -DSLANG_GENERATORS_PATH=generators/bin --preset emscripten -G "Ninja"
-# Build build.em/Release/bin/libslang.a
-cmake --build --preset emscripten --target slang
+# Build slang-wasm.js and slang-wasm.wasm in build.em/Release/bin
+cmake --build --preset emscripten --target slang-wasm
```
**Note:** If the last build step fails, try running the command that `emcmake` outputs, directly.