From b37c51d3b6150f93764d8ae6f40012fbbed24045 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sun, 16 Jul 2023 16:25:23 +0200 Subject: toolchain.inc: Set CCACHE_COMPILERCHECK=mtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From ccache(1): mtime Hash the compiler’s mtime and size, which is fast. This is the default. Hashing the compiler binary's content would only be necessary when we expect different binaries of the same size with the same path (e.g. during a compiler bootstrap) and wrong modification timestamps (might happen when checking an older version out of a (package) repository). Neither should be the case during our builds. And even if everything fails at once, chances are additionally low that a wrong cache hit would cause a problem. tl;dr we're building and testing firmware, not toolchains. Change-Id: I264a72c628559384fcc2060d777c52af927d5e14 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/76561 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin L Roth --- toolchain.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain.inc') diff --git a/toolchain.inc b/toolchain.inc index 3165586d78c8..f985e8843a01 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -8,7 +8,7 @@ ifeq ($(CCACHE),) $(error ccache selected, but not found in PATH) endif -export CCACHE_COMPILERCHECK=content +export CCACHE_COMPILERCHECK=mtime export CCACHE_BASEDIR=$(top) export CCACHE_STATSLOG=$(obj)/ccache.stats -- cgit v1.2.3