Skip to content

Commit bbc889d

Browse files
committed
Add missing vardeps on *_OS and *_ARCH
In the `rust_target` function, we dynamically construct lookups for BUILD_OS, TARGET_OS, BUILD_ARCH, TARGET_ARCH, etc. As a result Bitbake is not able to automatically dertermine our reliance on these variables when generating the sstate cache. This commit manually adds vardeps onto those variables. Signed-off-by: Nick Stevens <[email protected]>
1 parent 481b1a6 commit bbc889d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/rust-common.bbclass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ def rust_target(d, spec_type):
88
arch = d.getVar('%s_ARCH' % spec_type, True)
99
os = d.getVar('%s_OS' % spec_type, True)
1010

11+
# Make sure that tasks properly recalculate after ARCH or OS change
12+
d.appendVarFlag("rust_target", "vardeps", " %s_ARCH" % spec_type)
13+
d.appendVarFlag("rust_target", "vardeps", " %s_OS" % spec_type)
14+
1115
# Sometimes bitbake mixes the calling convention into the OS, sometimes it
1216
# doesn't... let's just take the first part
1317
os = os.split('-')[0]

0 commit comments

Comments
 (0)