mirror of
https://abf.rosa.ru/djam/llvm.git
synced 2025-02-23 08:12:50 +00:00
Avoid grep -q being always true if there is a trailing space
This commit is contained in:
parent
f35ca17b1f
commit
050040fe56
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ NOCLANG_OPTFLAGS="${NOCLANG_OPTFLAGS:-}"
|
|||
# set custom REMOVE_CFLAGS in %build or redefine %noclang_optflags
|
||||
REMOVE_CFLAGS="${REMOVE_CFLAGS:-}"
|
||||
# convert flags list to regexp
|
||||
REMOVE="$(echo "$NOCLANG_OPTFLAGS $REMOVE_CFLAGS" | sed -e 's, ,|,g')"
|
||||
REMOVE="$(echo "$NOCLANG_OPTFLAGS $REMOVE_CFLAGS" | sed -e 's, ,|,g' -e 's,|$,,g')"
|
||||
|
||||
# _CLANG_ must be changed to /usr/bin/clang++ and then to /usr/bin/clang in another copy of this wrapper
|
||||
if echo "$@" | grep -qE -- "${REMOVE}"
|
||||
|
|
Loading…
Add table
Reference in a new issue