[Mesa-dev] [PATCH] configure: Don't use $CLANG since it will collide with the static analyzer.
nobled
nobled at dreamwidth.org
Fri Dec 9 06:12:01 PST 2011
From: Jeremy Huddleston <jeremyhu at apple.com>
Date: Thu, 5 May 2011 14:08:57 -0700
We just prefix the $CLANG environment variable in configure.ac with acv_mesa_
Found by: tinderbox
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
Originally posted here:
http://lists.freedesktop.org/archives/mesa-dev/2011-May/007411.html
configure.ac | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index a4943e1..162945b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,13 +75,13 @@ AC_COMPILE_IFELSE(
not clang
#endif
]])],
-[CLANG=yes], [CLANG=no])
+[acv_mesa_CLANG=yes], [acv_mesa_CLANG=no])
-AC_MSG_RESULT([$CLANG])
+AC_MSG_RESULT([$acv_mesa_CLANG])
dnl If we're using GCC, make sure that it is at least version 3.3.0. Older
dnl versions are explictly not supported.
-if test "x$GCC" = xyes -a "x$CLANG" = xno; then
+if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
AC_MSG_CHECKING([whether gcc version is sufficient])
major=0
minor=0
@@ -155,7 +155,7 @@ esac
dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
- if test "x$CLANG" = "xno"; then
+ if test "x$acv_mesa_CLANG" = "xno"; then
CFLAGS="$CFLAGS -ffast-math"
fi
--
1.7.4.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003b-configure-Don-t-use-CLANG-since-it-will-collide-with.patch
Type: text/x-patch
Size: 1494 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111209/d310ac81/attachment.bin>
More information about the mesa-dev
mailing list