mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 03:19:41 +01:00
rust-target-config: Show clear error when target isn't defined
(From OE-Core rev: b30ee171de9cd736d16d783410cf748e35309257) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -326,6 +326,8 @@ def rust_gen_target(d, thing, wd, arch):
|
||||
tspec = {}
|
||||
tspec['llvm-target'] = llvm_target
|
||||
tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi)
|
||||
if tspec['data-layout'] is None:
|
||||
bb.fatal("No rust target defined for %s" % 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)
|
||||
tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi)
|
||||
|
||||
Reference in New Issue
Block a user