From 97fcc5db567e16e15a16b7b0ed5707ebc480d97e 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 121cd38..c786ee6 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') + cpu = d.getVar('PACKAGE_ARCH') target = d.getVar('TRANSLATED_TARGET_ARCH') trans = {}