aboutsummaryrefslogtreecommitdiff
path: root/extra/llvm/build
diff options
context:
space:
mode:
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 \