qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement c


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X
Date: Sat, 18 Jun 2016 21:49:09 +0200

The test currently only works with ELF and requires readelf,
but OS X does not use ELF binaries.

Signed-off-by: Stefan Weil <address@hidden>
---
 configure | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure b/configure
index 10cb212..89ffd28 100755
--- a/configure
+++ b/configure
@@ -1778,6 +1778,11 @@ fi
 ##########################################
 # avx2 optimization requirement check
 
+# This check currently only works for hosts with ELF,
+# so don't run it on Darwin.
+
+if [ "$darwin" != "yes" ] ; then
+
 cat > $TMPC << EOF
 #pragma GCC push_options
 #pragma GCC target("avx2")
@@ -1797,6 +1802,8 @@ if compile_object "" ; then
     fi
 fi
 
+fi # "$darwin" != "yes"
+
 #########################################
 # zlib check
 
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]