From: Emil Velikov <emil.veli...@collabora.com>

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

Cc: "11.2 12.0" <mesa-sta...@lists.freedesktop.org>
Cc: Tim Rowley <timothy.o.row...@intel.com>
Signed-off-by: Emil Velikov <emil.veli...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to