mirror of
https://github.com/boostorg/boost-ci.git
synced 2026-01-19 04:02:12 +00:00
Combine config.log for all invokations of B2
When invoking b2 multiple times in the same tree the `config.log` file will be overwritten making it impossible to inspect all of it. Save it to a temporary location when it exists and append the new content to it before restoring.
This commit is contained in:
14
ci/build.sh
14
ci/build.sh
@@ -18,6 +18,20 @@ export UBSAN_OPTIONS=print_stacktrace=1,report_error_type=1,${UBSAN_OPTIONS}
|
||||
|
||||
cd "$BOOST_ROOT"
|
||||
|
||||
# Save previous config if present. Append to that after finish
|
||||
b2_config="$BOOST_ROOT/bin.v2/config.log"
|
||||
if [[ -f "$b2_config" ]]; then
|
||||
prev_config=$(mktemp)
|
||||
mv "$b2_config" "$prev_config"
|
||||
function prepend_config {
|
||||
[[ -f "$b2_config" ]] || return
|
||||
echo "=========================== END PREVIOUS CONFIG ======================" >> "$prev_config"
|
||||
cat "$b2_config" >> "$prev_config"
|
||||
mv "$prev_config" "$b2_config"
|
||||
}
|
||||
trap prepend_config EXIT
|
||||
fi
|
||||
|
||||
${B2_WRAPPER} ./b2 ${B2_TARGETS} "${B2_ARGS[@]}" "$@"
|
||||
|
||||
if [ "$B2_USE_CCACHE" == "1" ] && command -v ccache &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user