use $CCACHE instead of hardcoded 'ccache'

Change-Id: I0083b4478902a09661fd2743c58369d85325e1a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126893
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
Luboš Luňák
2021-12-15 20:07:10 +01:00
parent 20301ba198
commit fa91a519c0

View File

@@ -3131,7 +3131,7 @@ AC_SUBST(CCACHE_DEPEND_MODE)
if test "$CCACHE" != "" -a -z "$SCCACHE"; then if test "$CCACHE" != "" -a -z "$SCCACHE"; then
# e.g. (/home/rene/.config/ccache/ccache.conf) max_size = 20.0G # e.g. (/home/rene/.config/ccache/ccache.conf) max_size = 20.0G
# -p works with both 4.2 and 4.4 # -p works with both 4.2 and 4.4
ccache_size_msg=$([ccache -p | $AWK /max_size/'{ print $4 }' | sed -e 's/\.[0-9]*//']) ccache_size_msg=$([$CCACHE -p | $AWK /max_size/'{ print $4 }' | sed -e 's/\.[0-9]*//'])
ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//') ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
if test "$ccache_size" = ""; then if test "$ccache_size" = ""; then
ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//') ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')