commit: 99e02b21ba6dd898a7680ad8ceb591efa142e7eb Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Sep 12 18:31:44 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Sep 12 18:33:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99e02b21
toolchain.eclass: BDEPEND on an Ada compiler Necessary but not sufficient. Needs a pkg_setup/pkg_pretend check for whether the active compiler supports Ada still, just like D needs this too (which isn't done either). Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 4e023ffb65d0..71342765c78e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -335,6 +335,14 @@ if tc_has_feature valgrind ; then BDEPEND+=" valgrind? ( dev-util/valgrind )" fi +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler +# supports Ada. +if tc_has_feature ada ; then + BDEPEND+=" ada? ( || ( sys-devel/gcc[ada] dev-lang/gnat-gpl[ada] ) )" +fi + +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler +# supports D. 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