File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
site/source/docs/building_from_source Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,14 @@ For example, something like this can work:
34
34
35
35
mkdir build
36
36
cd build/
37
- cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='lld;clang' -DLLVM_TARGETS_TO_BUILD="host;WebAssembly" -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF
37
+ cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='lld;clang' -DLLVM_TARGETS_TO_BUILD="host;WebAssembly" -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF # -DLLVM_ENABLE_ASSERTIONS=ON
38
38
cmake --build .
39
39
40
- Then point LLVM_ROOT in ``.emscripten `` to ``<llvm_src>/build/bin `` (no need to install).
40
+ Then set the environment variable ``EM_LLVM_ROOT `` to ``<llvm_src>/build/bin `` (no need to install).
41
+
42
+ If you need to match the emsdk releases of LLVM, `review the emscripten-release
43
+ build and test scripts <https://chromium.googlesource.com/emscripten-releases/+/refs/heads/main#build-and-test-scripts-in> `_.
44
+ Specifically `src/build.py <https://chromium.googlesource.com/emscripten-releases/+/refs/heads/main/src/build.py >`_.
41
45
42
46
Please refer to the upstream docs for more detail.
43
47
You can’t perform that action at this time.
0 commit comments