aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-01-20 15:48:22 -0300
committerThomas Huth <thuth@redhat.com>2023-01-26 13:33:13 +0100
commitc0031d389e7cc16b0223dbf5994627a4b9b44df3 (patch)
tree6fd67a59edf19adca47216f6f84fc2d3dcb86d6e /configure
parent90c167a1da5e35e3681a9ae5bcddcab707086d9a (diff)
downloadqemu-c0031d389e7cc16b0223dbf5994627a4b9b44df3.zip
qemu-c0031d389e7cc16b0223dbf5994627a4b9b44df3.tar.gz
qemu-c0031d389e7cc16b0223dbf5994627a4b9b44df3.tar.bz2
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 <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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 9e407ce..64960c6 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"