summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/ccache.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
index 76c8828619..9713feabcb 100644
--- a/meta/classes/ccache.bbclass
+++ b/meta/classes/ccache.bbclass
@@ -2,6 +2,12 @@ CCACHE = "${@bb.utils.which(d.getVar('PATH'), 'ccache') and 'ccache '}"
2export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" 2export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"
3CCACHE_DISABLE[unexport] = "1" 3CCACHE_DISABLE[unexport] = "1"
4 4
5# We need to stop ccache considering the current directory or the
6# debug-prefix-map target directory to be significant when calculating
7# its hash. Without this the cache would be invalidated every time
8# ${PV} or ${PR} change.
9export CCACHE_NOHASHDIR ?= "1"
10
5DEPENDS_append_class-target = " ccache-native" 11DEPENDS_append_class-target = " ccache-native"
6DEPENDS[vardepvalueexclude] = " ccache-native" 12DEPENDS[vardepvalueexclude] = " ccache-native"
7 13