Skip to content

Commit 4c32e6a

Browse files
committed
ci_build.sh: retain config.cache if DO_CLEAN_AUTOCONF_CACHE=no also in dev-test builds [#3108]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 9410f95 commit 4c32e6a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci_build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,19 @@ bindings)
27742774
# Help developers debug:
27752775
# Let initial clean-up be at default verbosity
27762776
echo "=== Starting initial clean-up (from old build products)"
2777+
2778+
rm -f config.cache.tmp || true
2779+
if [ x"${DO_CLEAN_AUTOCONF_CACHE}" = xno ] && [ -s config.cache ]; then
2780+
echo "=== Keeping old config.cache as asked by BUILD_TYPE default or caller request"
2781+
cp -f config.cache config.cache.tmp
2782+
fi
2783+
27772784
${MAKE} realclean -k || true
2785+
2786+
if [ x"${DO_CLEAN_AUTOCONF_CACHE}" = xno ] && [ -s config.cache.tmp ]; then
2787+
mv -f config.cache.tmp config.cache || true
2788+
fi
2789+
27782790
echo "=== Finished initial clean-up"
27792791
fi
27802792

0 commit comments

Comments
 (0)