configure: remove unnecessary check
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 May 2023 08:04:06 +0000 (10:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 11:35:28 +0000 (13:35 +0200)
All calls to probe_target_compiler are conditioned on
some "have_target" invocation, or inside a loop on target_list.
Therefore there is no issue with building unnecessary
firmware images and tests.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure

index 5d3e3d39ee9e08e601efd3b2f176263b2e6b1688..bcab685cfd972609c50626ce2ed136c8f4f96bbe 100755 (executable)
--- a/configure
+++ b/configure
@@ -1324,13 +1324,6 @@ probe_target_compiler() {
   container_cross_ranlib=
   container_cross_strip=
 
-  # We shall skip configuring the target compiler if the user didn't
-  # bother enabling an appropriate guest. This avoids building
-  # extraneous firmware images and tests.
-  if test "${target_list#*$1}" = "$1"; then
-      return 1
-  fi
-
   target_arch=${1%%-*}
   case $target_arch in
     aarch64) container_hosts="x86_64 aarch64" ;;