diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-08-08 23:12:45 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-08 23:54:00 +0200 |
commit | d3595477d8cc2d0324ec6f18649636a439ae232c (patch) | |
tree | b995e5cfe5f83f75706a1f36843f8fbb7fcb69b7 /Toolchain | |
parent | 8e93815846f83163a554b7d254778287bfdabec4 (diff) | |
download | serenity-d3595477d8cc2d0324ec6f18649636a439ae232c.zip |
Toolchain: Build libLLVM as a dynamic library
This library is used by virtually all executables in the Clang
toolchain. By default, it is linked statically, which leads to huge
file sizes and us running out of artifact storage disk space on CI.
Diffstat (limited to 'Toolchain')
-rwxr-xr-x | Toolchain/BuildClang.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh index 465a52a2db..5c4f3dfba3 100755 --- a/Toolchain/BuildClang.sh +++ b/Toolchain/BuildClang.sh @@ -259,6 +259,9 @@ pushd "$DIR/Build/clang/$ARCH" -DLLVM_ENABLE_PROJECTS="clang;lld" \ -DLLVM_INCLUDE_BENCHMARKS=OFF \ -DLLVM_INCLUDE_TESTS=OFF \ + -DLLVM_LLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_INSTALL_UTILS=OFF \ ${dev:+"-DLLVM_CCACHE_BUILD=ON"} || exit 1 buildstep "llvm+clang/build" ninja -j "$MAKEJOBS" || exit 1 |