]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
configure: remove compiler sanity check
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 May 2023 07:16:59 +0000 (09:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 11:35:28 +0000 (13:35 +0200)
The comment is not correct anymore, in that the usability test for
the compiler and linker are done after probing $cpu, and Meson will
redo them anyway.

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

index 8e1c535ffb671890c9cbcca84ea610d4180661af..fa7bc2d275d0095b10628f23b528db4e03cdc33d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1090,20 +1090,6 @@ if test -z "$ninja"; then
     fi
 fi
 
-# Check that the C compiler works. Doing this here before testing
-# the host CPU ensures that we had a valid CC to autodetect the
-# $cpu var (and we should bail right here if that's not the case).
-# It also allows the help message to be printed without a CC.
-write_c_skeleton;
-if compile_object ; then
-  : C compiler works ok
-else
-    error_exit "\"$cc\" either does not exist or does not work"
-fi
-if ! compile_prog ; then
-    error_exit "\"$cc\" cannot build an executable (is your linker broken?)"
-fi
-
 # Consult white-list to determine whether to enable werror
 # by default.  Only enable by default for git builds
 if test -z "$werror" ; then