Skip to content

Commit 9410f95

Browse files
committed
ci_build.sh: configure_nut(): log if config.cache is available and if we want/do use it [#3108]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent df2c2cc commit 9410f95

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci_build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,16 @@ configure_nut() {
11511151
echo "=== CONFIGURING NUT: $CONFIGURE_SCRIPT ${CONFIG_OPTS_STR}"
11521152
echo "=== CC='$CC' CXX='$CXX' CPP='$CPP'"
11531153
[ -z "${CI_SHELL_IS_FLAKY-}" ] || echo "=== CI_SHELL_IS_FLAKY='$CI_SHELL_IS_FLAKY'"
1154+
if [ x"${DO_USE_AUTOCONF_CACHE}" = xyes ] && [ -s config.cache ]; then
1155+
echo "$0: using existing config.cache" >&2
1156+
else
1157+
if [ x"${DO_USE_AUTOCONF_CACHE}" = xyes ]; then
1158+
echo "$0: NOT using config.cache because it did not exist" >&2
1159+
else if [ -s config.cache ]; then
1160+
echo "$0: NOT using existing config.cache because DO_USE_AUTOCONF_CACHE=$DO_USE_AUTOCONF_CACHE" >&2
1161+
fi; fi
1162+
fi
1163+
11541164
$CI_TIME $CONFIGURE_SCRIPT "${CONFIG_OPTS[@]}" \
11551165
&& echo "$0: configure phase complete (0)" >&2 \
11561166
&& return 0 \

0 commit comments

Comments
 (0)