commit: 94d882482714698d6d9b765920cd26bbe849336d Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Apr 26 04:06:21 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Apr 26 04:09:40 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d88248
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 <AT> gentoo.org> eclass/toolchain.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"