summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-cross.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-cross.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross.inc b/meta/recipes-devtools/rust/rust-cross.inc
index f6babfeeda..4c026b1f38 100644
--- a/meta/recipes-devtools/rust/rust-cross.inc
+++ b/meta/recipes-devtools/rust/rust-cross.inc
@@ -8,15 +8,10 @@ python do_rust_gen_targets () {
8 features = "" 8 features = ""
9 cpu = "generic" 9 cpu = "generic"
10 arch = d.getVar('{}_ARCH'.format(thing)) 10 arch = d.getVar('{}_ARCH'.format(thing))
11 abi = ""
12 if thing is "TARGET": 11 if thing is "TARGET":
13 abi = d.getVar('ABIEXTENSION')
14 # arm and armv7 have different targets in llvm
15 if arch == "arm" and target_is_armv7(d):
16 arch = 'armv7'
17 features = d.getVar('TARGET_LLVM_FEATURES') or "" 12 features = d.getVar('TARGET_LLVM_FEATURES') or ""
18 cpu = d.getVar('TARGET_LLVM_CPU') 13 cpu = d.getVar('TARGET_LLVM_CPU')
19 rust_gen_target(d, thing, wd, features, cpu, arch, abi) 14 rust_gen_target(d, thing, wd, features, cpu, arch)
20} 15}
21 16
22# Otherwise we'll depend on what we provide 17# Otherwise we'll depend on what we provide