[OE-core] [PATCH 4/5] ccache: don't search PATH for ccache

Ross Burton ross.burton at intel.com
Wed Jul 12 12:43:30 UTC 2017


Instead of searching $PATH for ccache in all builds, simply set CCACHE in target
builds to 'ccache ' directly.  We build-depend on ccache-native for target
builds so this will always be present.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/ccache.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
index 960902065c4..8e4b5ab8410 100644
--- a/meta/classes/ccache.bbclass
+++ b/meta/classes/ccache.bbclass
@@ -1,4 +1,5 @@
-CCACHE = "${@bb.utils.which(d.getVar('PATH'), 'ccache') and 'ccache '}"
+CCACHE_class-target = "ccache "
+
 export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_TARGET_SYS}/${PN}"
 
 # We need to stop ccache considering the current directory or the
-- 
2.11.0




More information about the Openembedded-core mailing list