]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/tcg: Do not build/run TCG tests if TCG is disabled
authorFabiano Rosas <farosas@suse.de>
Fri, 20 Jan 2023 18:48:22 +0000 (15:48 -0300)
committerThomas Huth <thuth@redhat.com>
Thu, 26 Jan 2023 12:33:13 +0000 (13:33 +0100)
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 <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230120184825.31626-7-farosas@suse.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure

index 9e407ce2e3a9afb1e0face6f89b33df6d0a91a7d..64960c6000f5613e00712c6203f1e7117163a916 100755 (executable)
--- 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"