1
0
Fork 0

Print the log if configure fails

This commit is contained in:
kcgen 2020-04-26 13:53:04 -07:00 committed by Patryk Obara
parent de43073145
commit 892a6f61a2

View file

@ -29,9 +29,11 @@ function autogen() {
function configure() {
if [[ ! -f Makefile || ! -f .previous_build || configure -nt Makefile ]]; then
export CXXFLAGS="${CFLAGS} ${CXXONLY}"
set -x
./configure --enable-core-inline ${configure_additions[*]}
set +x
if ! ./configure --enable-core-inline ${configure_additions[*]}; then
echo "Failed to configure.. dumping the log:"
cat config.log
exit 1
fi
fi
}