summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-26 05:06:21 +0100
committerSam James <sam@gentoo.org>2023-04-26 05:09:40 +0100
commit94d882482714698d6d9b765920cd26bbe849336d (patch)
tree1f3f24b069257d7e4bc50c5e0d47b5ce5dc3c550 /eclass
parentgames-simulation/flightgear-data: crank copyright (diff)
downloadgentoo-94d882482714698d6d9b765920cd26bbe849336d.tar.gz
gentoo-94d882482714698d6d9b765920cd26bbe849336d.tar.bz2
gentoo-94d882482714698d6d9b765920cd26bbe849336d.zip
toolchain.eclass: don't enable openmp by default for >= 13
This should be set in profiles going forward, not in toolchain.eclass. Bug: https://bugs.gentoo.org/890999 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ba83cad72cb2..fab34914ab3f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -242,7 +242,14 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
IUSE+=" pgo"
IUSE+=" objc-gc" TC_FEATURES+=( objc-gc )
IUSE+=" libssp objc++"
- IUSE+=" +openmp"
+
+ # Stop forcing openmp on by default in the eclass. Gradually phase it out.
+ # See bug #890999.
+ if tc_version_is_at_least 13.0.0_pre20221218 ; then
+ IUSE+=" openmp"
+ else
+ IUSE+=" +openmp"
+ fi
tc_version_is_at_least 4.3 && IUSE+=" fixed-point"
tc_version_is_at_least 4.7 && IUSE+=" go"