diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 12:54:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:20 +0100 |
commit | 9a093d034889bff444a5801313e24c39a323d7ef (patch) | |
tree | 7ae9bf821c9c706528a30aa6c75b0b7efa966ce6 | |
parent | 9e5cbb80f0eb5760ea03ab8adb6b2be3b1abfae2 (diff) | |
download | poky-9a093d034889bff444a5801313e24c39a323d7ef.tar.gz |
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>
-rw-r--r-- | meta/classes/rust-target-config.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass index 7fe039601a..ab177cf59f 100644 --- a/meta/classes/rust-target-config.bbclass +++ b/meta/classes/rust-target-config.bbclass | |||
@@ -326,6 +326,8 @@ def rust_gen_target(d, thing, wd, arch): | |||
326 | tspec = {} | 326 | tspec = {} |
327 | tspec['llvm-target'] = llvm_target | 327 | tspec['llvm-target'] = llvm_target |
328 | tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi) | 328 | tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi) |
329 | if tspec['data-layout'] is None: | ||
330 | bb.fatal("No rust target defined for %s" % arch_abi) | ||
329 | tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) | 331 | tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) |
330 | tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) | 332 | tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) |
331 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) | 333 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) |