diff options
author | Sam James <sam@gentoo.org> | 2024-08-08 17:40:13 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-08-09 09:55:35 +0100 |
commit | 45d958ad4e6aa7e0a07d6b887518a5491d9bbe33 (patch) | |
tree | 4247a29b821310a4457ba39e4364ef360b47bfe5 /eclass/toolchain.eclass | |
parent | toolchain.eclass: add another TODO for tests wrt ABIs (diff) | |
download | gentoo-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.eclass | 7 |
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.) |