repo/extra/llvm/build
2019-06-27 15:54:19 +03:00

17 lines
307 B
Bash
Executable File

#!/bin/sh -e
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_TARGETS_TO_BUILD="host;X86" \
-DLLVM_ENABLE_RTTI=ON \
-Wno-dev -G Ninja ..
ninja
DESTDIR="$1" ninja install