meson: do not check supported TCG architecture if no emulators built

Errors about TCI are pointless if only tools are being built; suppress
them even if the user did not specify --disable-tcg.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2022-05-09 12:50:29 +02:00
parent 5346686182
commit e3c426cb78
3 changed files with 8 additions and 6 deletions

View file

@ -1,4 +1,4 @@
if not get_option('tcg').allowed()
if not have_tcg
subdir_done()
endif