summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-05-08 10:34:47 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-05-08 10:39:35 +0100
commitbdc0c0901a01727e26871572b12bfdd3bc48ae24 (patch)
tree2fdd6db7a7ecdb322cc0efa55f7005cf662b5a55 /eclass/flag-o-matic.eclass
parentnet-fs/netatalk: Port to tracker-3 (diff)
downloadgentoo-bdc0c0901a01727e26871572b12bfdd3bc48ae24.tar.gz
gentoo-bdc0c0901a01727e26871572b12bfdd3bc48ae24.tar.bz2
gentoo-bdc0c0901a01727e26871572b12bfdd3bc48ae24.zip
flag-o-matic.eclass: allow -fno-sanitize* options
We already allow -fsanitize* options. Sometimes it's useful to enable -fsanitize= globally and disable ir in a few ebuilds. The change allows passing -fno-sanitize=all an similar to achieve that effect. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index ed1b6e746cef..2e04e2acb06b 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -49,7 +49,9 @@ setup-allowed-flags() {
_setup-allowed-flags() {
ALLOWED_FLAGS=(
-pipe -O '-O[12sg]' -mcpu -march -mtune
- '-fstack-protector*' '-fsanitize*' '-fstack-check*' -fno-stack-check
+ '-fstack-protector*'
+ '-fsanitize*' '-fno-sanitize*'
+ '-fstack-check*' -fno-stack-check
-fbounds-check -fbounds-checking -fno-strict-overflow
-fno-PIE -fno-pie -nopie -no-pie -fno-unit-at-a-time