diff options
author | Emil Velikov <[email protected]> | 2016-06-10 17:46:24 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-06-15 09:29:11 +0100 |
commit | 766f8526165b62d7b43e70beea4fef9bd7080210 (patch) | |
tree | d7dd56e92d00f82815594f9d619c87856e4bd90f | |
parent | b499d1062db970871b04592ba9e1e99fc1dee377 (diff) |
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" <[email protected]>
Cc: Tim Rowley <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Chuck Atkins <[email protected]>
Tested-by: Chuck Atkins <[email protected]>
(cherry picked from commit bab5ab69402594637359289c1b5ec6491e91d252)
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 33d1fefc543..c492e158f76 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' \ |