commit:     a39d1669ca0f42a2477c978d14ba5c22728aa6cb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 31 04:57:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 31 04:58:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a39d1669

toolchain.eclass: adjust D dep for non-gcc

Needed for sys-devel/kgcc64.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 5c6e39472a58..4a91f0d3dee0 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -324,11 +324,11 @@ if tc_has_feature zstd ; then
        RDEPEND+=" zstd? ( app-arch/zstd:= )"
 fi
 
-if tc_has_feature valgrind; then
+if tc_has_feature valgrind ; then
        BDEPEND+=" valgrind? ( dev-util/valgrind )"
 fi
 
-if tc_version_is_at_least 12.0 ; then
+if tc_has_feature d && tc_version_is_at_least 12.0 ; then
        # D in 12+ is self-hosting and needs D to bootstrap.
        # TODO: package some binary we can use, like for Ada
        # bug #840182

Reply via email to