summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-04-18 17:47:01 +0000
committerHauke Mehrtens2026-04-30 08:27:37 +0000
commita6149ff867c92daa1aaa050b27ba8c6053d7cfe0 (patch)
tree09f6a797c186e8ae7f9684062954b5f893850d84
parent71d259b59998a214049c9e456f330cd8f292468f (diff)
downloadopenwrt-a6149ff867c92daa1aaa050b27ba8c6053d7cfe0.tar.gz
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:<toolchain-commit-sha> 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 <hauke@hauke-m.de> (cherry picked from commit 3956287514e5457723070f4b8bc7ed8084019d39)
-rw-r--r--rules.mk1
1 files changed, 0 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index d332664b79..de175fa7ba 100644
--- a/rules.mk
+++ b/rules.mk
@@ -344,7 +344,6 @@ ifneq ($(CONFIG_CCACHE),)
HOSTCXX:= ccache $(HOSTCXX)
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 = \