configure: --no-ccache must disable CCACHE for $HOSTCC too!

Accomplish this by setting CCACHE_DISABLE=true

Change-Id: Ie930fc4e828ebb7a29234c1a8f371980489d5668
This commit is contained in:
Solomon Peachy 2021-09-20 20:14:37 -04:00
parent 672bbe434b
commit 412e76b487
1 changed files with 3 additions and 0 deletions

3
tools/configure vendored
View File

@ -4432,6 +4432,8 @@ elif [ "$ARG_CCACHE" != "0" ]; then
if test -n "$ccache"; then
echo "Found and uses ccache ($ccache)"
fi
else
CCACHE_ARG="export CCACHE_DISABLE=true"
fi
# figure out the full path to the various commands if possible
@ -4724,6 +4726,7 @@ export ANDROID_NDK_PATH=${ANDROID_NDK_PATH}
export ANDROID_SDK_PATH=${ANDROID_SDK_PATH}
export ANDROID_PLATFORM_VERSION=${ANDROID_PLATFORM_VERSION}
export TOOLSET=${toolset}
$CCACHE_ARG
CONFIGURE_OPTIONS=${cmdline}