qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X
@ 2016-06-18 19:49 Stefan Weil
  2016-06-18 20:45 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2016-06-18 19:49 UTC (permalink / raw)
  To: QEMU Developer; +Cc: Peter Maydell, Stefan Weil

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

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X
  2016-06-18 19:49 [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X Stefan Weil
@ 2016-06-18 20:45 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2016-06-18 20:45 UTC (permalink / raw)
  To: Stefan Weil; +Cc: QEMU Developer

On 18 June 2016 at 20:49, Stefan Weil <sw@weilnetz.de> wrote:
> The test currently only works with ELF and requires readelf,
> but OS X does not use ELF binaries.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  configure | 7 +++++++
>  1 file changed, 7 insertions(+)

Would be neater to use "if has readelf" I think,
rather than making it OS specific. (I assume readelf
itself does the right thing if fed a non-ELF object,
or we'd already be breaking windows builds.)

thanks
-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-18 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-18 19:49 [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X Stefan Weil
2016-06-18 20:45 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).