]> git.ipfire.org Git - thirdparty/openwrt.git/commit
build: do not set CCACHE_COMPILERCHECK 22995/head
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 18 Apr 2026 17:47:01 +0000 (19:47 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 22 Apr 2026 21:57:01 +0000 (23:57 +0200)
commit3956287514e5457723070f4b8bc7ed8084019d39
treed337cc09c62162bb59a0663b9d0b5715e71e21ef
parent1bc03924dbb14a4803e1f8369860e7bf23c7dc60
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>
rules.mk