2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 19:20:10 -07:00

llvm: better build

This commit is contained in:
Dylan Araps 2019-11-14 00:28:28 +00:00
parent 3734fa803f
commit 8a95a1fd66
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -1,20 +1,19 @@
#!/bin/sh -e
mkdir -p build
cd build
export DESTDIR="$1"
cmake \
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_TARGETS_TO_BUILD="host;X86;AMDGPU" \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \
-DLLVM_BUILD_EXAMPLES=OFF \
-DLLVM_BUILD_DOCS=OFF \
-DLLVM_BUILD_TESTS=OFF \
-Wno-dev -G "Unix Makefiles" ..
-Wno-dev
make
make DESTDIR="$1" install
cmake --build build
cmake --install build