]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: remove unnecessary subshell
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Nov 2023 09:06:08 +0000 (10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 31 Dec 2023 08:11:28 +0000 (09:11 +0100)
Do not use a subshell to hide the shadowing of $config_host_mak.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure

index 9885cfed792cbbdfcd67ad6b6060a043326f216e..ed2d220040dad840a4d95a231ebe46a881940c57 100755 (executable)
--- a/configure
+++ b/configure
@@ -1671,10 +1671,9 @@ if test "$targetos" = windows; then
 fi
 
 # tests/tcg configuration
-(config_host_mak=tests/tcg/config-host.mak
 mkdir -p tests/tcg
-echo "# Automatically generated by configure - do not modify" > $config_host_mak
-echo "SRC_PATH=$source_path" >> $config_host_mak
+echo "# Automatically generated by configure - do not modify" > tests/tcg/$config_host_mak
+echo "SRC_PATH=$source_path" >> tests/tcg/$config_host_mak
 
 tcg_tests_targets=
 for target in $target_list; do
@@ -1717,9 +1716,8 @@ for target in $target_list; do
 done
 
 if test "$tcg" = "enabled"; then
-    echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak
+    echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> $config_host_mak
 fi
-)
 
 if test "$skip_meson" = no; then
   cross="config-meson.cross.new"