summaryrefslogtreecommitdiff
path: root/eclass/toolchain.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/toolchain.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