contrib/plugins: enable debug on CONFIG_DEBUG_TCG
commita4cc0b7dd7dc27f6afb5d4e0338d953e36319c65
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 27 Oct 2022 18:36:33 +0000 (27 19:36 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 31 Oct 2022 20:37:59 +0000 (31 20:37 +0000)
treee5ecab8833e6385bc2d87b2b04f8d2ffc61b77bd
parentd1d94d968d30ce57674b7e3f2752657e1cd2e4b6
contrib/plugins: enable debug on CONFIG_DEBUG_TCG

We used to rely on QEMU_CFLAGS to expose the debug flags but now this
is synthesised by meson and only available to the main build. Add our
own flags if we detect the build has been enabled with
CONFIG_DEBUG_TCG (which is the default for --enable-debug anyway).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221027183637.2772968-28-alex.bennee@linaro.org>
contrib/plugins/Makefile