summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-08 17:40:13 +0100
committerSam James <sam@gentoo.org>2024-08-09 09:55:35 +0100
commit45d958ad4e6aa7e0a07d6b887518a5491d9bbe33 (patch)
tree4247a29b821310a4457ba39e4364ef360b47bfe5 /eclass/toolchain.eclass
parenttoolchain.eclass: add another TODO for tests wrt ABIs (diff)
downloadgentoo-45d958ad4e6aa7e0a07d6b887518a5491d9bbe33.tar.gz
gentoo-45d958ad4e6aa7e0a07d6b887518a5491d9bbe33.tar.bz2
gentoo-45d958ad4e6aa7e0a07d6b887518a5491d9bbe33.zip
toolchain.eclass: filter more flags in src_test
* Drop diagnostic flags (colour, URLs) which may break tests * Drop QA flags to check if *FLAGS are respected; not necessary for tests and may confuse e.g. export checks (as with mesa). Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a3b126a3d83c..89af435dfbf6 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1927,6 +1927,13 @@ toolchain_src_test() {
# Unexpected warnings confuse the tests.
filter-flags -W*
+ # May break parsing.
+ filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*'
+
+ # Gentoo QA flags which don't belong in tests
+ filter-flags -frecord-gcc-switches
+ filter-flags '-Wl,--defsym=__gentoo_check_ldflags__=0'
+
# Workaround our -Wformat-security default which breaks
# various tests as it adds unexpected warning output.
# (Only for C/C++ here to avoid noise for Fortran.)