mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-26 07:46:18 +00:00
21 lines
482 B
Bash
Executable File
21 lines
482 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;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" ..
|
|
|
|
make -j "$(nproc || echo 2)"
|
|
make DESTDIR="$1" install
|