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