3 export CFLAGS
="-O2 -pipe -march=westmere -ftree-vectorize"
4 export CXXFLAGS
="$CFLAGS"
6 mv Modules
/* cmake
/modules
/
8 # Remove ncurses dependency.
9 sed 's/\(LLVM_ENABLE_TERMINFO\) 1/\1 2/' \
10 cmake
/config-ix.cmake
> _
11 mv -f _ cmake
/config-ix.cmake
14 -DCMAKE_INSTALL_PREFIX=/usr \
15 -DCMAKE_BUILD_TYPE=Release \
16 -DLLVM_BUILD_LLVM_DYLIB=ON \
17 -DLLVM_LINK_LLVM_DYLIB=ON \
18 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
19 -DLLVM_ENABLE_RTTI=ON \
20 -DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \
21 -DLLVM_INCLUDE_BENCHMARKS=OFF \
22 -DLLVM_INCLUDE_EXAMPLES=OFF \
23 -DLLVM_INCLUDE_DOCS=OFF \
24 -DLLVM_INCLUDE_TESTS=OFF \
25 -DLLVM_ENABLE_TERMINFO=OFF \
26 -DLLVM_ENABLE_LIBXML2=OFF \