From 94c31284cfd1378644dbb1d324d42a268ee9ab2f Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Tue, 3 Jan 2017 17:08:49 -0500 Subject: [PATCH] rust: update the cpu selection to use PACKAGE_ARCH to ensure older processors can run created executables when building targets that have newer features Signed-off-by: Derek Straka --- recipes-devtools/rust/rust.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index e4ef114..9ca061b 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -177,7 +177,7 @@ def arch_to_rust_target_arch(arch): # generates our target CPU value def llvm_cpu(d): - cpu = d.getVar('TUNE_PKGARCH', True) + cpu = d.getVar('PACKAGE_ARCH', True) target = d.getVar('TRANSLATED_TARGET_ARCH', True) trans = {}