We don't need to generate trace files for targets we are not building. Restrict the the ones selected.
Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> --- meson.build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index 05a67c20d93..8503aa1b628 100644 --- a/meson.build +++ b/meson.build @@ -1826,16 +1826,16 @@ trace_events_subdirs += [ 'accel/tcg', 'hw/core', - 'target/arm', - 'target/hppa', - 'target/i386', 'target/i386/kvm', - 'target/mips', - 'target/ppc', - 'target/riscv', - 'target/s390x', - 'target/sparc', ] + foreach target : target_dirs + arch = config_target_mak[target]['TARGET_BASE_ARCH'] + target_trace_events_subdir = 'target' / arch + if fs.exists(meson.current_source_dir() / target_trace_events_subdir / 'trace-events') and \ + target_trace_events_subdir not in trace_events_subdirs + trace_events_subdirs += [target_trace_events_subdir] + endif + endforeach endif vhost_user = not_found -- 2.26.2