From: Fabiano Rosas Date: Fri, 20 Jan 2023 18:48:22 +0000 (-0300) Subject: tests/tcg: Do not build/run TCG tests if TCG is disabled X-Git-Tag: v8.0.0-rc0~81^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0031d389e7cc16b0223dbf5994627a4b9b44df3;p=thirdparty%2Fqemu.git tests/tcg: Do not build/run TCG tests if TCG is disabled The tests under tests/tcg depend on the TCG accelerator. Do not build them if --disable-tcg was given in the configure line. Signed-off-by: Fabiano Rosas Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230120184825.31626-7-farosas@suse.de> Signed-off-by: Thomas Huth --- diff --git a/configure b/configure index 9e407ce2e3a..64960c6000f 100755 --- a/configure +++ b/configure @@ -2483,7 +2483,11 @@ for target in $target_list; do tcg_tests_targets="$tcg_tests_targets $target" fi done -echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak) + +if test "$tcg" = "enabled"; then + echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak +fi +) if test "$skip_meson" = no; then cross="config-meson.cross.new"