changeset 31504:7ad75a6dc1b4

clang also does not support -march=native.
author reimar
date Sun, 27 Jun 2010 19:10:29 +0000
parents 4d06e790f7ad
children 5cb114fcfe2e
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 27 19:07:51 2010 +0000
+++ b/configure	Sun Jun 27 19:10:29 2010 +0000
@@ -1934,7 +1934,7 @@
 int main(void) { return 0; }
 EOF
   if test "$_runtime_cpudetection" = no ; then
-    if test $cc_vendor != "intel" ; then
+    if test $cc_vendor != "intel" && test $cc_vendor != "clang" ; then
       cc_check -march=native && proc=native
     fi
     if test "$proc" = "amdfam10"; then
@@ -2087,7 +2087,7 @@
 EOF
     # This is a stripped-down version of the i386 fallback.
     if test "$_runtime_cpudetection" = no ; then
-      if test $cc_vendor != "intel" ; then
+      if test $cc_vendor != "intel" && test $cc_vendor != "clang" ; then
         cc_check -march=native && proc=native
       fi
       # --- AMD processors ---