From becedcdf8e9658f8002409c280a969b7c4de3e0a Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 9 Jul 2015 18:13:30 -0700 Subject: [PATCH] profiles: use compiler hash for ccache By default ccache checks the compiler's mtime and size but that gets thrown off by reinstalls, including from binary packages. The alternative mode reads the compiler binary itself instead. In theory that may be slower but in reality both modes are effectively the same speed. ccache will now work under catalyst --- .../coreos-overlay/profiles/coreos/base/make.defaults | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults index 0131a5e29a..9dcf8cb33b 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults @@ -85,6 +85,7 @@ PORTAGE_BUNZIP2_COMMAND="lbunzip2" # instead of ${ROOT}/var/tmp/ccache enables sharing results across # setup_board --force and between different boards of the same arch. CCACHE_COMPRESS=1 +CCACHE_COMPILERCHECK=content CCACHE_DIR="/var/tmp/ccache" # Always build binary packages, remove old build logs, avoid running as root.