Message ID | 20220805131252.3706794-14-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | b30ee171de9cd736d16d783410cf748e35309257 |
Headers | show |
Series | [01/29] nativesdk: Clear TUNE_FEATURES | expand |
diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass index 7fe039601af..ab177cf59f4 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): 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)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- meta/classes/rust-target-config.bbclass | 2 ++ 1 file changed, 2 insertions(+)