From bab5ab69402594637359289c1b5ec6491e91d252 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 10 Jun 2016 17:46:24 +0100 Subject: configure.ac: strip out the llvm-config -march/mtune flags Otherwise drivers such as SWR that depend on providing their own values will fail to build. v2: Add -mcpu for good measure (Chuck) Cc: "11.2 12.0" Cc: Tim Rowley Signed-off-by: Emil Velikov Reviewed-by: Chuck Atkins Tested-by: Chuck Atkins --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 33d1fef..c492e15 100644 --- a/configure.ac +++ b/configure.ac @@ -2102,6 +2102,9 @@ 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/-mcpu=\S*//g' \ -e 's/-DNDEBUG\>//g' \ -e 's/-D_GNU_SOURCE\>//g' \ -e 's/-pedantic\>//g' \ -- cgit v1.1