|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
#
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
pkg_clang_host_configure() {
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if ! rtl_fileop rm "../cfe-${PKG_VERSION}-host" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! rtl_fileop mkdir "../cfe-${PKG_VERSION}-host" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! rtl_fileop cd "../cfe-${PKG_VERSION}-host" \
|
|
Lucio Andrés Illanes Albornoz |
b6a9a1 |
|| ! rtl_log_msg verbose "Bootstrapping clang_host..." \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! ("${PREFIX}/bin/cmake" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
"../cfe-${PKG_VERSION}.src" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCLANG_INCLUDE_DOCS:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_BUILD_TYPE=Release \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_INSTALL_PREFIX="" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_VERBOSE_MAKEFILE=NO \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLIBCLANG_BUILD_STATIC:BOOL=ON \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLLVM_PREFIX="${PKG_PREFIX}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-G "Unix Makefiles" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-Wno-dev) \
|
|
Lucio Andrés Illanes Albornoz |
b6a9a1 |
|| ! rtl_log_msg verbose "Finished bootstrapping clang_host."; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
585426 |
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
# vim:filetype=sh textwidth=0
|