Skip to content

Commit 45e7441

Browse files
committed
General improvements to Emscripten llvm build
1 parent 7a65d6c commit 45e7441

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/emscripten.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ jobs:
299299
-DLLVM_INCLUDE_TESTS=OFF \
300300
-DLLVM_ENABLE_THREADS=OFF \
301301
-G Ninja \
302+
-DLLVM_BUILD_TOOLS=OFF \
303+
-DLLVM_ENABLE_LIBPFM=OFF \
302304
../llvm
303305
emmake ninja clang cling lld gtest_main -j ${{ env.ncpus }}
304306
else
@@ -325,10 +327,13 @@ jobs:
325327
-DLLVM_INCLUDE_EXAMPLES=OFF \
326328
-DLLVM_INCLUDE_TESTS=OFF \
327329
-DLLVM_ENABLE_THREADS=OFF \
330+
-DLLVM_BUILD_TOOLS=OFF \
331+
-DLLVM_ENABLE_LIBPFM=OFF \
328332
-G Ninja \
329333
../llvm
330334
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm -j ${{ env.ncpus }}
331335
fi
336+
rm -rf ./NATIVE/
332337
cd ../
333338
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
334339
if [[ "${cling_on}" == "ON" ]]; then

Emscripten-build-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release \
6969
-DLLVM_INCLUDE_EXAMPLES=OFF \
7070
-DLLVM_INCLUDE_TESTS=OFF \
7171
-DLLVM_ENABLE_THREADS=OFF \
72+
-DLLVM_BUILD_TOOLS=OFF \
73+
-DLLVM_ENABLE_LIBPFM=OFF \
7274
../llvm
7375
emmake make libclang -j $(nproc --all)
7476
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)

docs/Emscripten-build-instructions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ executing the following
8585
-DLLVM_INCLUDE_EXAMPLES=OFF \
8686
-DLLVM_INCLUDE_TESTS=OFF \
8787
-DLLVM_ENABLE_THREADS=OFF \
88+
-DLLVM_BUILD_TOOLS=OFF \
89+
-DLLVM_ENABLE_LIBPFM=OFF \
8890
../llvm
8991
emmake make libclang -j $(nproc --all)
9092
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)

0 commit comments

Comments
 (0)