Skip to content

Commit

Permalink
Add timing info to b2
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Nov 26, 2024
1 parent 5aa75a4 commit 2462572
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/common_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ if [[ "$B2_DONT_BOOTSTRAP" != "1" ]]; then
# Check if b2 already exists. This would (only) happen in a caching scenario. The purpose of caching is to save time by not recompiling everything.
# The user may clear cache or delete b2 beforehand if they wish to rebuild.
if [ ! -f b2 ] || ! b2_version_output=$(./b2 --version); then
${B2_WRAPPER} ./bootstrap.sh
time ${B2_WRAPPER} ./bootstrap.sh
else
# b2 expects versions to match
engineversion=$(echo "$b2_version_output" | tr -s ' ' | cut -d' ' -f2 | cut -d'-' -f1)
Expand All @@ -190,9 +190,9 @@ if [[ "$B2_DONT_BOOTSTRAP" != "1" ]]; then
if [[ "${enginemajorversion}" == "${coremajorversion}" ]] && [[ "${engineminorversion}" == "${coreminorversion}" ]]; then
echo "b2 already exists and has the same version number"
else
${B2_WRAPPER} ./bootstrap.sh
time ${B2_WRAPPER} ./bootstrap.sh
fi
fi
trap - ERR
${B2_WRAPPER} ./b2 -d0 headers
time ${B2_WRAPPER} ./b2 -d0 headers
fi

0 comments on commit 2462572

Please sign in to comment.