summaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2023-07-16 16:25:23 +0200
committerMartin L Roth <gaumless@gmail.com>2023-07-23 22:39:53 +0000
commitb37c51d3b6150f93764d8ae6f40012fbbed24045 (patch)
treec39322606521752d69b8d05b204d448bba029e52 /toolchain.inc
parentbaf82808aef4b27720c0dda0821a7075bce599ce (diff)
downloadcoreboot-b37c51d3b6150f93764d8ae6f40012fbbed24045.tar.gz
coreboot-b37c51d3b6150f93764d8ae6f40012fbbed24045.tar.bz2
coreboot-b37c51d3b6150f93764d8ae6f40012fbbed24045.zip
toolchain.inc: Set CCACHE_COMPILERCHECK=mtime
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 <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76561 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc2
1 files changed, 1 insertions, 1 deletions
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