summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-31 05:57:54 +0100
committerSam James <sam@gentoo.org>2022-08-31 05:58:27 +0100
commita39d1669ca0f42a2477c978d14ba5c22728aa6cb (patch)
treecf5151d0a9831f64fb85995c9892b178b3418de1
parentsys-devel/kgcc64: add 10.4.0 (diff)
downloadgentoo-a39d1669.tar.gz
gentoo-a39d1669.tar.bz2
gentoo-a39d1669.zip
toolchain.eclass: adjust D dep for non-gcc
Needed for sys-devel/kgcc64. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/toolchain.eclass4
1 files 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