Skip to content

Commit

Permalink
Simplify regex for export flag cleanup: *-([gO][^[:space:]]*|W[^[:spa…
Browse files Browse the repository at this point in the history
…ce:]]+)
  • Loading branch information
berquist committed Jul 17, 2023
1 parent 82aa2f7 commit 1c11509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ AC_CACHE_SAVE

dnl Remove flags like -g, -O, and -W, that are not needed by other elements
export_flag_cleanup() {
echo "$1" | sed -E -e 's/ *-(g@<:@^@<:@:space:@:>@@:>@*|O@<:@^@<:@:space:@:>@@:>@*|W@<:@^@<:@:space:@:>@@:>@+)//g'
echo "$1" | sed -E -e 's/ *-(@<:@gO@:>@@<:@^@<:@:space:@:>@@:>@*|W@<:@^@<:@:space:@:>@@:>@+)//g'
}
SST_EXPORT_CXXFLAGS=`export_flag_cleanup "$CXXFLAGS"`
SST_EXPORT_CFLAGS=`export_flag_cleanup "$CFLAGS"`
Expand Down

0 comments on commit 1c11509

Please sign in to comment.