summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-05-04 19:20:52 +0200
committerFabian Groffen <grobian@gentoo.org>2021-05-04 19:20:52 +0200
commit6029c8fcb03f40eba4da6e9d870b91de43670c67 (patch)
treeaa03f7f69a48b7b68d6368d9c7c757fba8117047
parenteclass/java-utils-2: sync with gx86 (diff)
downloadprefix-6029c8fcb03f40eba4da6e9d870b91de43670c67.tar.gz
prefix-6029c8fcb03f40eba4da6e9d870b91de43670c67.tar.bz2
prefix-6029c8fcb03f40eba4da6e9d870b91de43670c67.zip
eclass/toolchain: sync with gx86
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6e7411559a..e85900934f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -173,7 +173,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"