summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2017-03-22 00:27:15 -0700
committerVinson Lee <[email protected]>2017-03-22 00:30:22 -0700
commitbd6f0dcafce73b1c7332a1c51f6862470fe2c2a0 (patch)
treecdae598694a5dbeccccbab34c0ed989a9072b4dd /configure.ac
parent62c48ccb413bbb0d3d305966514b7783640eaf89 (diff)
configure.ac: Do not strip away space after regex word match.
Fixes: 62c48ccb413b ("configure.ac: Use POSIX compatible regex for word boundary.") Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index dbf0bf83185..ab9a91ed17b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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' \