aboutsummaryrefslogtreecommitdiff
path: root/extra/llvm/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2022-12-08 17:59:39 +0100
committerCem Keylan <cem@ckyln.com>2022-12-08 17:59:39 +0100
commit773c508f85847395c90c4c93b3355b1d0f56dba4 (patch)
treee494c8789af0e3e8fa9c281a655ca491c0ffd5e2 /extra/llvm/build
parent13247c931a3088db6e93a636e9f54df305ccca13 (diff)
downloadrepository-773c508f85847395c90c4c93b3355b1d0f56dba4.tar.gz
clang, llvm: merge packages and drop llvm-huge repo
Diffstat (limited to 'extra/llvm/build')
-rwxr-xr-xextra/llvm/build5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/llvm/build b/extra/llvm/build
index 337ebeb3..f8b0f3b0 100755
--- a/extra/llvm/build
+++ b/extra/llvm/build
@@ -2,12 +2,13 @@
export DESTDIR="$1"
-cmake -B build \
+cmake -S llvm -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
+ -DLIBCXX_HAS_MUSL_LIBC=YES \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
- -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
+ -DLLVM_ENABLE_PROJECTS="clang;lld" \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \
-DLLVM_BUILD_EXAMPLES=OFF \