aboutsummaryrefslogtreecommitdiff
path: root/alternatives/llvm-huge/llvm/build
blob: f57f3451ae4b29bc408799c255f2f60cbb486bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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