diff options
-rw-r--r-- | meta/classes/ccache.bbclass | 6 |
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 '}" | |||
2 | export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" | 2 | export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" |
3 | CCACHE_DISABLE[unexport] = "1" | 3 | CCACHE_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. | ||
9 | export CCACHE_NOHASHDIR ?= "1" | ||
10 | |||
5 | DEPENDS_append_class-target = " ccache-native" | 11 | DEPENDS_append_class-target = " ccache-native" |
6 | DEPENDS[vardepvalueexclude] = " ccache-native" | 12 | DEPENDS[vardepvalueexclude] = " ccache-native" |
7 | 13 | ||