summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian-common.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
index 1f21c8af26..df4901f1fa 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
@@ -27,9 +27,10 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP
27 27
28python do_rust_gen_targets () { 28python do_rust_gen_targets () {
29 wd = d.getVar('WORKDIR') + '/targets/' 29 wd = d.getVar('WORKDIR') + '/targets/'
30 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_LLVM_FEATURES') or "", d.getVar('TARGET_LLVM_CPU'), d.getVar('TARGET_ARCH')) 30 # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last
31 rust_gen_target(d, 'HOST', wd, "", "generic", d.getVar('HOST_ARCH'))
32 rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH')) 31 rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH'))
32 rust_gen_target(d, 'HOST', wd, "", "generic", d.getVar('HOST_ARCH'))
33 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_LLVM_FEATURES') or "", d.getVar('TARGET_LLVM_CPU'), d.getVar('TARGET_ARCH'))
33} 34}
34 35
35INHIBIT_DEFAULT_RUST_DEPS = "1" 36INHIBIT_DEFAULT_RUST_DEPS = "1"