Complete commit 83d5db95d38 ("meson: Allow system binaries
to not have target-specific units") with yet another guard,
allowing empty target_arch[] source sets for some targets.Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 4176d020c21..987f33bacee 100644 --- a/meson.build +++ b/meson.build @@ -4332,9 +4332,11 @@ foreach target : target_dirs arch_srcs += files('target-info-stub.c') endif - t = target_arch[target_base_arch].apply(config_target, strict: false) - arch_srcs += t.sources() - arch_deps += t.dependencies() + if target_base_arch in target_arch + t = target_arch[target_base_arch].apply(config_target, strict: false) + arch_srcs += t.sources() + arch_deps += t.dependencies() + endif target_common = common_ss.apply(config_target, strict: false) objects = [common_all.extract_objects(target_common.sources())] -- 2.53.0
