[Mesa-dev] [PATCH 1/2] configure.ac: strip out the llvm-config -march/mtune flags

Emil Velikov emil.l.velikov at gmail.com
Fri Jun 10 17:54:26 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Otherwise drivers such as SWR that depend on providing their own values
will fail to build.

Cc: "11.2 12.0" <mesa-stable at lists.freedesktop.org>
Cc: Tim Rowley <timothy.o.rowley at intel.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 33d1fef..9e95f7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2102,6 +2102,8 @@ AC_ARG_WITH([llvm-prefix],
 strip_unwanted_llvm_flags() {
     # Use \> (marks the end of the word)
     echo `$1` | sed \
+	-e 's/-march=\S*//g' \
+	-e 's/-mtune=\S*//g' \
 	-e 's/-DNDEBUG\>//g' \
 	-e 's/-D_GNU_SOURCE\>//g' \
 	-e 's/-pedantic\>//g' \
-- 
2.8.2



More information about the mesa-dev mailing list