mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
rust: fix issue building cross-canadian tools for aarch64 on x86_64
Commit bd36593ba3db758b3eacc974e48468a665967961 did introduce a regression when building package rust-cross-canadian-aarch64 on a x86_64 host. This commit will fix that configuration. Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org> (From OE-Core rev: ef566af964e9f9d2c440a3b5771ed801216f30f9) Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
95f8fe68ee
commit
701ac97c15
@@ -309,10 +309,7 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""):
|
||||
|
||||
# build tspec
|
||||
tspec = {}
|
||||
if bb.data.inherits_class('cross-canadian', d):
|
||||
tspec['llvm-target'] = d.getVar('RUST_HOST_SYS', arch_abi)
|
||||
else:
|
||||
tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi)
|
||||
tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi)
|
||||
tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi)
|
||||
tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi))
|
||||
tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi)
|
||||
|
||||
Reference in New Issue
Block a user