Skip to content

Commit

Permalink
clang: better build
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Nov 14, 2019
1 parent 8a95a1f commit 5469b31
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions extra/clang/build
@@ -1,9 +1,8 @@
#!/bin/sh -e

mkdir -p build
cd build
export DESTDIR="$1"

cmake \
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_RTTI=ON \
Expand All @@ -12,7 +11,7 @@ cmake \
-DCLANG_INCLUDE_DOCS=OFF \
-DCLANG_INCLUDE_TESTS=OFF \
-DLIBCLANG_BUILD_STATIC=ON \
-Wno-dev -G "Unix Makefiles" ..
-Wno-dev

make
make DESTDIR="$1" install
cmake --build build
cmake --install build

0 comments on commit 5469b31

Please sign in to comment.