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:
@@ -177,7 +177,7 @@ def arch_to_rust_target_arch(arch):
|
|||||||
|
|
||||||
# generates our target CPU value
|
# generates our target CPU value
|
||||||
def llvm_cpu(d):
|
def llvm_cpu(d):
|
||||||
cpu = d.getVar('TUNE_PKGARCH')
|
cpu = d.getVar('PACKAGE_ARCH')
|
||||||
target = d.getVar('TRANSLATED_TARGET_ARCH')
|
target = d.getVar('TRANSLATED_TARGET_ARCH')
|
||||||
|
|
||||||
trans = {}
|
trans = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user