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 <[email protected]> --- 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 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
