diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/ccache.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass index 5ce23e50f3..f6bd972ff4 100644 --- a/meta/classes/ccache.bbclass +++ b/meta/classes/ccache.bbclass | |||
| @@ -51,10 +51,10 @@ python() { | |||
| 51 | Enable ccache for the recipe | 51 | Enable ccache for the recipe |
| 52 | """ | 52 | """ |
| 53 | pn = d.getVar('PN') | 53 | pn = d.getVar('PN') |
| 54 | if ("ccache" in d.getVar("HOSTTOOLS").split() or | 54 | if (not bb.utils.to_boolean(d.getVar('CCACHE_DISABLE')) and |
| 55 | ("ccache" in d.getVar("HOSTTOOLS").split() or | ||
| 55 | pn in d.getVar('CCACHE_NATIVE_RECIPES_ALLOWED') or | 56 | pn in d.getVar('CCACHE_NATIVE_RECIPES_ALLOWED') or |
| 56 | not (bb.data.inherits_class("native", d) or | 57 | not bb.data.inherits_class("native", d))): |
| 57 | bb.utils.to_boolean(d.getVar('CCACHE_DISABLE')))): | ||
| 58 | d.appendVar('DEPENDS', ' ccache-native') | 58 | d.appendVar('DEPENDS', ' ccache-native') |
| 59 | d.setVar('CCACHE', 'ccache ') | 59 | d.setVar('CCACHE', 'ccache ') |
| 60 | } | 60 | } |
