diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2021-01-17 19:37:41 -0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2021-01-19 01:20:39 -0800 |
commit | a5b3282048df4c786dbda9feec303ee414c55627 (patch) | |
tree | 2316d66bc054f2f8ecdf6a42328d03c0b726ff94 /meta/classes/ccache.bbclass | |
parent | f2520cc39b90722eda993f4ef424e9b736fbd3f7 (diff) | |
download | openembedded-core-contrib-a5b3282048df4c786dbda9feec303ee414c55627.tar.gz |
ccache.bbclass: Use ccache-native and disable ccache for native recipes
Since host's ccache is not reliable, so disable ccache for native recipes and
use ccache-native for other types of recipes. We need disable ccache for native
recipes is because ccache-native now depends on cmake-native which causes
circular dependencies, and it's not easy to break the circular.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/classes/ccache.bbclass')
-rw-r--r-- | meta/classes/ccache.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass index fc4745609c..4532894c57 100644 --- a/meta/classes/ccache.bbclass +++ b/meta/classes/ccache.bbclass @@ -49,7 +49,7 @@ python() { """ pn = d.getVar('PN') # quilt-native doesn't need ccache since no c files - if not (pn in ('ccache-native', 'quilt-native') or + if not (bb.data.inherits_class("native", d) or bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))): d.appendVar('DEPENDS', ' ccache-native') d.setVar('CCACHE', 'ccache ') |