commit: 75f0421f54035bd364f3b58de94887831302b02f
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Fri Oct 4 08:12:22 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 7 04:12:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75f0421f
toolchain.eclass: Only search for a D installation if D bootstrapping is needed
<=gcc-11 doesn't need another gdc to build so don't search for one
during the setup.
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 19357b4dfb2d..ff02723e2d90 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1129,9 +1129,12 @@ toolchain_src_configure() {
_tc_use_if_iuse ada
}
+ _need_d_bootstrap() {
+ _tc_use_if_iuse d && [[ ${GCCMAJOR} -ge 12 ]]
+ }
_need_ada_bootstrap_mangling && toolchain_setup_ada
- _tc_use_if_iuse d && toolchain_setup_d
+ _need_d_bootstrap && toolchain_setup_d
confgcc+=( --enable-languages=${GCC_LANG} )