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 <derek@asterius.io>
This commit is contained in:
Derek Straka
2017-01-03 17:08:49 -05:00
parent 38ba7ccf2e
commit 94c31284cf
+1 -1
View File
@@ -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 = {}