diff options
Diffstat (limited to 'meta/recipes-devtools/rust/rust-common.inc')
| -rw-r--r-- | meta/recipes-devtools/rust/rust-common.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-common.inc b/meta/recipes-devtools/rust/rust-common.inc index 37abd2cd26..82ff03b908 100644 --- a/meta/recipes-devtools/rust/rust-common.inc +++ b/meta/recipes-devtools/rust/rust-common.inc | |||
| @@ -297,6 +297,12 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""): | |||
| 297 | sys = sys_for(d, thing) | 297 | sys = sys_for(d, thing) |
| 298 | prefix = prefix_for(d, thing) | 298 | prefix = prefix_for(d, thing) |
| 299 | 299 | ||
| 300 | if thing == "TARGET": | ||
| 301 | abi = d.getVar('ABIEXTENSION') | ||
| 302 | # arm and armv7 have different targets in llvm | ||
| 303 | if arch == "arm" and target_is_armv7(d): | ||
| 304 | arch = 'armv7' | ||
| 305 | |||
| 300 | rust_arch = oe.rust.arch_to_rust_arch(arch) | 306 | rust_arch = oe.rust.arch_to_rust_arch(arch) |
| 301 | 307 | ||
| 302 | if abi: | 308 | if abi: |
