rust: force crate hash to use bitbake input hash

This should eliminate the problems that have been seen when bitbake
rebuilds part of the rust stack (due to missing sstate) and ends up
getting hash mismatches.  Unlike rust's internally generated hash, ours
is guaranteed to be stable.
This commit is contained in:
Steven Walter committed 2016-02-03 11:30:56 -05:00
1 parent ce73e1a6f2
commit 3a832dd439
5 files changed
+108 -1

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
RUSTC = "rustc"
# FIXME: --sysroot might be needed
RUSTC_ARCHFLAGS += "--target=${TARGET_SYS} -C rpath"
RUSTC_ARCHFLAGS += "--target=${TARGET_SYS} -C rpath -C crate_hash=${BB_TASKHASH}"
def rust_base_dep(d):
# Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to