mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-25 00:09:54 +00:00
configure.ac: look for whole words in LLVM flags, not prefixes
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
9b67a347f6
commit
3d59cde92e
11
configure.ac
11
configure.ac
@ -1644,13 +1644,14 @@ AC_ARG_WITH([llvm-prefix],
|
||||
# Call this inside ` ` to get the return value.
|
||||
# $1 is the llvm-config command with arguments.
|
||||
strip_unwanted_llvm_flags() {
|
||||
# Use \> (marks the end of the word)
|
||||
echo `$1` | sed \
|
||||
-e 's/-DNDEBUG\>//g' \
|
||||
-e 's/-pedantic//g' \
|
||||
-e 's/-Wcovered-switch-default//g' \
|
||||
-e 's/-O.//g' \
|
||||
-e 's/-g//g' \
|
||||
-e 's/-Wall//g'
|
||||
-e 's/-pedantic\>//g' \
|
||||
-e 's/-Wcovered-switch-default\>//g' \
|
||||
-e 's/-O.\>//g' \
|
||||
-e 's/-g\>//g' \
|
||||
-e 's/-Wall\>//g'
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user