Skip to content

Commit

Permalink
configure: remove unnecessary subshell
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Dec 31, 2023
1 parent c7e618d commit 606c3ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 606c3ba

Please sign in to comment.