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
2015-11-18 08:43:15 -05:00
parent ce73e1a6f2
commit 3a832dd439
5 changed files with 108 additions and 1 deletions
+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