Skip to content

Commit 7d9be77

Browse files
authored
Reduce Emscripten build size and reduce build time by building libclang instead of clang target (#531)
1 parent 2e93bb8 commit 7d9be77

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ jobs:
327327
-DLLVM_ENABLE_THREADS=OFF \
328328
-G Ninja \
329329
../llvm
330-
emmake ninja clang clangInterpreter clangStaticAnalyzerCore lld -j ${{ env.ncpus }}
330+
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lld -j ${{ env.ncpus }}
331331
fi
332332
cd ../
333333
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")

Emscripten-build-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release \
7070
-DLLVM_INCLUDE_TESTS=OFF \
7171
-DLLVM_ENABLE_THREADS=OFF \
7272
../llvm
73-
emmake make clang -j $(nproc --all)
74-
emmake make clang-repl -j $(nproc --all)
73+
emmake make libclang -j $(nproc --all)
74+
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)
7575
emmake make lld -j $(nproc --all)
7676
```
7777

docs/Emscripten-build-instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ executing the following
8686
-DLLVM_INCLUDE_TESTS=OFF \
8787
-DLLVM_ENABLE_THREADS=OFF \
8888
../llvm
89-
emmake make clang -j $(nproc --all)
90-
emmake make clang-repl -j $(nproc --all)
89+
emmake make libclang -j $(nproc --all)
90+
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)
9191
emmake make lld -j $(nproc --all)
9292
9393
Once this finishes building we need to take note of where we built our

0 commit comments

Comments
 (0)