summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-21 10:31:40 +0100
committerSam James <sam@gentoo.org>2024-10-21 10:31:58 +0100
commit72d5ea56d41b7d5aac351854b7479f5c2c430c83 (patch)
tree80b853656fe1ba22ea0fdcc180c0e0384c290cb3 /eclass
parentnet-proxy/squid: add 6.12 (diff)
downloadgentoo-72d5ea56d41b7d5aac351854b7479f5c2c430c83.tar.gz
gentoo-72d5ea56d41b7d5aac351854b7479f5c2c430c83.tar.bz2
gentoo-72d5ea56d41b7d5aac351854b7479f5c2c430c83.zip
toolchain.eclass: filter -fdiagnostics-explain-harder
This is an experimental flag not yet merged upstream but filtering it makes it easier to test with so it doesn't confuse older unpatched (locally) GCCs. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6bad1def19f4..dd4130ef9b85 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1944,6 +1944,10 @@ gcc_do_filter_flags() {
filter-flags -Walloc-size
fi
+ if ver_test -lt 15.1 ; then
+ filter-flags -fdiagnostics-explain-harder
+ fi
+
# Please use USE=lto instead (bug #906007).
filter-lto