Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | CCACHE = "${@bb.utils.which(d.getVar('PATH'), 'ccache') and 'ccache '}" |
| 2 | export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_TARGET_SYS}/${PN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | # We need to stop ccache considering the current directory or the |
| 5 | # debug-prefix-map target directory to be significant when calculating |
| 6 | # its hash. Without this the cache would be invalidated every time |
| 7 | # ${PV} or ${PR} change. |
| 8 | export CCACHE_NOHASHDIR ?= "1" |
| 9 | |
| 10 | DEPENDS_append_class-target = " ccache-native" |
| 11 | DEPENDS[vardepvalueexclude] = " ccache-native" |