@@ -2,7 +2,7 @@ inherit python3native
# Convert a normal arch (HOST_ARCH, TARGET_ARCH, BUILD_ARCH, etc) to something
# rust's internals won't choke on.
-def arch_to_rust_target_arch(arch):
+def arch_to_rust_arch(arch):
if arch == "i586" or arch == "i686":
return "x86"
elif arch == "mipsel":
@@ -313,7 +313,7 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""):
tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi)
tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi)
tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi)
- tspec['arch'] = arch_to_rust_target_arch(arch)
+ tspec['arch'] = arch_to_rust_arch(arch)
tspec['os'] = "linux"
if "musl" in tspec['llvm-target']:
tspec['env'] = "musl"
It's not just for translating TARGET names, but any of BUILD, HOST or TARGET. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> --- meta/classes/rust-common.bbclass | 2 +- meta/recipes-devtools/rust/rust-common.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)