Mesa (master): Don't pass -ffast-math to clang, since it ignores it and complains.

Eric Anholt anholt at kemper.freedesktop.org
Mon Aug 30 21:20:28 UTC 2010


Module: Mesa
Branch: master
Commit: a3c2bd416aa871166baacff50c89842e3b533d9b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3c2bd416aa871166baacff50c89842e3b533d9b

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 30 14:19:23 2010 -0700

Don't pass -ffast-math to clang, since it ignores it and complains.

---

 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index cf2e200..77004cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,7 +137,10 @@ esac
 
 dnl Add flags for gcc and g++
 if test "x$GCC" = xyes; then
-    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
+    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
+    if test "x$CLANG" = "xno"; then
+       CFLAGS="$CFLAGS -ffast-math"
+    fi
 
     # Enable -fvisibility=hidden if using a gcc that supports it
     save_CFLAGS="$CFLAGS"




More information about the mesa-commit mailing list