repo/extra/llvm/build

21 lines
482 B
Plaintext
Raw Normal View History

2019-06-27 06:45:20 -06:00
#!/bin/sh -e
2019-06-27 06:54:19 -06:00
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
2019-06-27 08:23:34 -06:00
-DLLVM_TARGETS_TO_BUILD="host;X86;AMDGPU" \
2019-06-27 06:54:19 -06:00
-DLLVM_ENABLE_RTTI=ON \
2019-07-31 16:56:58 -06:00
-DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \
2019-07-31 07:38:48 -06:00
-DLLVM_BUILD_EXAMPLES=OFF \
-DLLVM_BUILD_DOCS=OFF \
-DLLVM_BUILD_TESTS=OFF \
2019-06-27 08:18:20 -06:00
-Wno-dev -G "Unix Makefiles" ..
2019-06-27 06:54:19 -06:00
2019-07-31 17:15:11 -06:00
make -j "$(nproc || echo 2)"
2019-06-27 08:18:20 -06:00
make DESTDIR="$1" install