summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-10-05 12:11:10 +0100
committerSam James <sam@gentoo.org>2023-10-05 12:12:29 +0100
commitcc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495 (patch)
treee27e3223cdf8af8463ac3da6b574ece93a4be0ea /eclass/flag-o-matic.eclass
parentflag-o-matic.eclass: allow -mbranch-protection=* (diff)
downloadgentoo-cc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495.tar.gz
gentoo-cc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495.tar.bz2
gentoo-cc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495.zip
flag-o-matic.eclass: allow --unwindlib/--rtlib/--stdlib too
We may want to gate these just for Clang but they (at least --stdlib) affect ABI so we shouldn't be filtering these. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index bf4a8397c5d1..c0b042d5348d 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -134,6 +134,12 @@ _setup-allowed-flags() {
# binaries: bug #677852
-mstackrealign
)
+ ALLOWED_FLAGS+=(
+ # Clang-only
+ '--unwindlib=*'
+ '--rtlib=*'
+ '--stdlib=*'
+ )
}
# @FUNCTION: _filter-hardened