Skip to content

Commit c0031d3

Browse files
Fabiano Rosashuth
Fabiano Rosas
authored andcommitted
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 <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 90c167a commit c0031d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configure

+5-1
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,11 @@ for target in $target_list; do
24832483
tcg_tests_targets="$tcg_tests_targets $target"
24842484
fi
24852485
done
2486-
echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak)
2486+
2487+
if test "$tcg" = "enabled"; then
2488+
echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak
2489+
fi
2490+
)
24872491

24882492
if test "$skip_meson" = no; then
24892493
cross="config-meson.cross.new"

0 commit comments

Comments
 (0)