blob: 1b10de93a54a26dd376add5f4d964fc350d774ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh -e
export DESTDIR="$1"
mv Modules/*.cmake cmake/modules
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_EH=ON \
-DCLANG_BUILD_EXAMPLES=OFF \
-DCLANG_INCLUDE_DOCS=OFF \
-DCLANG_INCLUDE_TESTS=OFF \
-DLIBCLANG_BUILD_STATIC=ON \
-Wno-dev
cmake --build build
cmake --install build
|