Skip to content

Commit

Permalink
flag-o-matic.eclass: all-flag-vars allow all -fsanitize* flags #553716
Browse files Browse the repository at this point in the history
This fixes handling of -fsanitize=foo flags, as well as supporting flags
like -fsanitize-foo-bar.  Since gcc seems to be using that namespace for
all these settings, allow them all.
  • Loading branch information
hannob authored and vapier committed Sep 1, 2015
1 parent 9ade35f commit 49ab018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/flag-o-matic.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ all-flag-vars() {
setup-allowed-flags() {
ALLOWED_FLAGS="-pipe"
ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune"
ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*"
ALLOWED_FLAGS+=" -fstack-protector* -fsanitize*"
ALLOWED_FLAGS+=" -fbounds-check -fbounds-checking -fno-strict-overflow"
ALLOWED_FLAGS+=" -fno-PIE -fno-pie -nopie -fno-unit-at-a-time"
ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+"
Expand Down

0 comments on commit 49ab018

Please sign in to comment.