Skip to content

Commit

Permalink
llvm: better build
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Nov 14, 2019
1 parent 3734fa8 commit 8a95a1f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions extra/llvm/build
@@ -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

0 comments on commit 8a95a1f

Please sign in to comment.