aboutsummaryrefslogtreecommitdiff
path: root/alternatives/llvm-huge/llvm/build
diff options
context:
space:
mode:
Diffstat (limited to 'alternatives/llvm-huge/llvm/build')
-rwxr-xr-xalternatives/llvm-huge/llvm/build19
1 files changed, 19 insertions, 0 deletions
diff --git a/alternatives/llvm-huge/llvm/build b/alternatives/llvm-huge/llvm/build
new file mode 100755
index 00000000..f57f3451
--- /dev/null
+++ b/alternatives/llvm-huge/llvm/build
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+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_ENABLE_PROJECTS="clang;lld" \
+ -DLLVM_ENABLE_RTTI=ON \
+ -DLLVM_BUILD_EXAMPLES=OFF \
+ -DLLVM_BUILD_DOCS=OFF \
+ -DLLVM_BUILD_TESTS=OFF \
+ -Wno-dev
+
+cmake --build build
+cmake --install build