mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-21 21:46:18 +00:00
31 lines
889 B
Plaintext
31 lines
889 B
Plaintext
|
#!/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_PROJECTS="clang;compiler-rt;libcxx;libcxxabi;libunwind" \
|
||
|
-DLLVM_ENABLE_RTTI=ON \
|
||
|
-DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \
|
||
|
-DLLVM_BUILD_EXAMPLES=OFF \
|
||
|
-DLLVM_BUILD_DOCS=OFF \
|
||
|
-DLLVM_BUILD_TESTS=OFF \
|
||
|
-DLLVM_ENABLE_LIBCXX=ON \
|
||
|
-DLIBCXXABI_USE_LLVM_UNWINDER=ON \
|
||
|
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
|
||
|
-DLIBCXX_USE_COMPILER_RT=ON \
|
||
|
-DLIBCXXABI_USE_COMPILER_RT=ON \
|
||
|
-DLIBUNWIND_USE_COMPILER_RT=ON \
|
||
|
-DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=OFF \
|
||
|
-DCLANG_DEFAULT_CXX_STDLIB=libc++ \
|
||
|
-DCLANG_DEFAULT_RTLIB=compiler-rt \
|
||
|
-Wno-dev -G Ninja "$OLDPWD/llvm"
|
||
|
|
||
|
ninja all
|
||
|
DESTDIR="$1" ninja install
|