Skip to content

Commit 56747d9

Browse files
committed
Improve output of boost script on failure
1 parent fdbae9f commit 56747d9

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

tools/ci/installBoost.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if all_libs_exist; then
3232
fi
3333

3434
BUILD_DIR=/tmp/boost
35+
BUILD_LOG=/tmp/boost.log
3536

3637
mkdir -p "${BUILD_DIR}" && cd "${BUILD_DIR}"
3738

@@ -54,5 +55,14 @@ else
5455
TOOLSET=
5556
fi
5657

57-
./bootstrap.sh --with-libraries=$(join , ${required_libs[@]}) threading=multi >/dev/null
58-
./b2 link=${link} ${TOOLSET} variant=release --prefix="${INSTALL_DIR}" -j${NPROC} install >/dev/null
58+
libraries=$(join , "${required_libs[@]}")
59+
60+
if ! ./bootstrap.sh --with-libraries="$libraries" threading=multi > "$BUILD_LOG"; then
61+
cat "$BUILD_LOG" || true
62+
cat bootstrap.log
63+
exit 1
64+
fi
65+
if ! ./b2 link="${link}" ${TOOLSET} variant=release --prefix="${INSTALL_DIR}" -j${NPROC} install > "$BUILD_LOG"; then
66+
cat "$BUILD_LOG"
67+
exit 1
68+
fi

0 commit comments

Comments
 (0)