Mesa (master): configure.ac: remove -fcolor-diagnostics from LLVM flags

Brian Paul brianp at kemper.freedesktop.org
Wed Dec 18 14:12:08 UTC 2013


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

Author: Markus Trippelsdorf <markus at trippelsdorf.de>
Date:   Fri Dec 13 10:59:42 2013 +0100

configure.ac: remove -fcolor-diagnostics from LLVM flags

When LLVM is build with Clang, "llvm-config --cxxflags" contains the
-fcolor-diagnostics flag. It is not recognized by gcc and the build
fails. Fix by removing the flag.

Signed-off-by: Markus Trippelsdorf <markus at trippelsdorf.de>
Signed-off-by: Brian Paul <brianp at vmware.com>

---

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

diff --git a/configure.ac b/configure.ac
index 6481627..b0e2b4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1546,6 +1546,7 @@ strip_unwanted_llvm_flags() {
 	-e 's/-O.\>//g' \
 	-e 's/-g\>//g' \
 	-e 's/-Wall\>//g' \
+	-e 's/-fcolor-diagnostics\>//g' \
 	-e 's/-fomit-frame-pointer\>//g'
 }
 




More information about the mesa-commit mailing list