3 export CFLAGS
="-O2 -pipe -march=westmere -ftree-vectorize"
4 export CXXFLAGS
="$CFLAGS"
7 mv -f Modules
/* cmake
/modules
/
8 mv -f modules
/* cmake
/modules
/
11 -DCMAKE_INSTALL_PREFIX=/usr \
12 -DCMAKE_BUILD_TYPE=Release \
13 -DLLVM_ENABLE_RTTI=ON \
15 -DLLVM_ENABLE_LIBXML2=OFF \
16 -DCLANG_BUILD_EXAMPLES=OFF \
17 -DCLANG_INCLUDE_DOCS=OFF \
18 -DCLANG_INCLUDE_TESTS=OFF \
19 -DLIBCLANG_BUILD_STATIC=ON \
25 # Fix up libexec location. This can't be done during
26 # the configure stage of the build as it is hardcoded.
29 "$1/usr/libexec/"*analyze
* \
30 "$1/usr/libexec/"*intercept
* \
33 rmdir "$1/usr/libexec"
35 sed 's|libexec|lib/clang|' "$1/usr/bin/scan-build" > _
36 mv -f _
"$1/usr/bin/scan-build"
37 chmod +x
"$1/usr/bin/scan-build"