From: Markus Gothe Date: Tue, 7 Feb 2023 21:00:33 +0000 (+0100) Subject: rules.mk: Update ccache's compiler check. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3859e8eeb82950d8594f60d40e5ee23fd02207c9;p=openwrt%2Fstaging%2Fwigyori.git rules.mk: Update ccache's compiler check. Update the compiler check for ccache so we don't end up with the wrong binaries. Right now the compiler check will not be able to correctly distinguish the compiler used for build ARMv8 binaries from the one used to build ARMv7 binaries. Signed-off-by: Markus Gothe Link: https://github.com/openwrt/openwrt/pull/16290 Signed-off-by: John Crispin --- diff --git a/rules.mk b/rules.mk index 9db7c72fa4..16d6020e1a 100644 --- a/rules.mk +++ b/rules.mk @@ -346,7 +346,7 @@ ifneq ($(CONFIG_CCACHE),) export CCACHE_NOCOMPRESS:=true export CCACHE_BASEDIR:=$(TOPDIR) export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache) - export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion + export CCACHE_COMPILERCHECK:=%compiler% -v -c endif TARGET_CONFIGURE_OPTS = \