Commit bd6f0dca authored by Vinson Lee's avatar Vinson Lee

configure.ac: Do not strip away space after regex word match.

Fixes: 62c48ccb ("configure.ac: Use POSIX compatible regex for word boundary.")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
parent 62c48ccb
......@@ -909,9 +909,9 @@ llvm_add_target() {
strip_unwanted_llvm_flags() {
echo " `$1` " | sed -E \
-e 's/[[[:space:]]]+-m[[^[:space:]]]*//g' \
-e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]//g' \
-e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]//g' \
-e 's/[[[:space:]]]+-pedantic[[[:space:]]]//g' \
-e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]/ /g' \
-e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]/ /g' \
-e 's/[[[:space:]]]+-pedantic[[[:space:]]]/ /g' \
-e 's/[[[:space:]]]+-W[[^[:space:]]]*//g' \
-e 's/[[[:space:]]]+-O[[^[:space:]]]*//g' \
-e 's/[[[:space:]]]+-g[[^[:space:]]]*//g' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment