summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-02-22 21:57:22 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-02-22 22:00:10 +0000
commit63c16d8b5e71b5f8e6185965062cf9c836800c29 (patch)
treea764d39805eacfc6d3e88ce867bae844423ec5d0 /eclass/toolchain.eclass
parentmedia-tv/kodi: Matrix has been branched upstream (diff)
downloadgentoo-63c16d8b5e71b5f8e6185965062cf9c836800c29.tar.gz
gentoo-63c16d8b5e71b5f8e6185965062cf9c836800c29.tar.bz2
gentoo-63c16d8b5e71b5f8e6185965062cf9c836800c29.zip
eclass/toolchain.eclass: disable USE=vtv on gcc-10 and above
USE=vtv has a few problems: - it's build system has a few quirks: bug #767706, bug #582524 - it's developed in gcc for a while Bug: https://bugs.gentoo.org/582524 Bug: https://bugs.gentoo.org/767706 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 59f8660a3d90..f41ce22c5915 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -170,7 +170,16 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 6.5 &&
IUSE+=" graphite" TC_FEATURES+=(graphite)
tc_version_is_between 4.9 8 && IUSE+=" cilk"
- tc_version_is_at_least 4.9 && IUSE+=" ada +vtv"
+ tc_version_is_at_least 4.9 && IUSE+=" ada"
+
+ # Don't enable USE=vtv starting from gcc-10. Once gcc-10
+ # stable everywhere disable by default on older versions
+ # as well.
+ if tc_version_is_at_least 10; then
+ IUSE+=" vtv"
+ elif tc_version_is_at_least 4.9; then
+ IUSE+=" +vtv"
+ fi
tc_version_is_at_least 5.0 && IUSE+=" jit"
tc_version_is_between 5.0 9 && IUSE+=" mpx"
tc_version_is_at_least 6.0 && IUSE+=" +pie +ssp +pch"