From 50d801db753ecbc0cd08405a42120aaaf920bb8a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 18 Apr 2026 19:47:01 +0200 Subject: [PATCH] build: do not set CCACHE_COMPILERCHECK Stop overriding CCACHE_COMPILERCHECK from rules.mk and rely on ccache's default, which hashes the compiler binary's mtime and size. For a local tree that is enough: the toolchain only changes when it is rebuilt, and a rebuild updates mtime and size. Users who want a stricter check can still set CCACHE_COMPILERCHECK in their environment. CI does not depend on this export either. The workflow writes a secondary ccache.conf with compiler_check=string: so the cache key is tied to the toolchain source revision. That is both stricter than the previous "%compiler% -v -c" setting and portable across runners, where compiler mtimes would not match after restoring a cache archive. Link: https://github.com/openwrt/openwrt/pull/22995 Signed-off-by: Hauke Mehrtens (cherry picked from commit 3956287514e5457723070f4b8bc7ed8084019d39) --- rules.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/rules.mk b/rules.mk index 966367222f..0e9c178c1b 100644 --- a/rules.mk +++ b/rules.mk @@ -352,7 +352,6 @@ 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% -v -c endif TARGET_CONFIGURE_OPTS = \