commit: bdc0c0901a01727e26871572b12bfdd3bc48ae24
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat May 8 09:34:47 2021 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat May 8 09:39:35 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdc0c090
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 <AT> gentoo.org>
eclass/flag-o-matic.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index ed1b6e746ce..2e04e2acb06 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