commit:     62624051074391f6c8d7c6cdb4a75a234220a326
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 22 00:50:45 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 22 00:52:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62624051

toolchain.eclass: force-enable libphobos

libphobos/configure.tgt controls which targets automatically get libphobos;
it works on more than is listed there but requires testing to be added.

For e.g. hppa, our CHOST differs from Debian and doesn't match (will send
a patch). For sparc, it looks like it should work, but not listed. Let's
override it and then can handle any fallout from there.

(Otherwise, we end up e.g. building a gcc which can't then bootstrap
other gcc w/ D).

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

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index bb8bb6512394..bf883c5370fc 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1241,7 +1241,7 @@ toolchain_src_configure() {
 
        local GCC_LANG="c"
        is_cxx && GCC_LANG+=",c++"
-       is_d   && GCC_LANG+=",d"
+       is_d   && GCC_LANG+=",d" confgcc+=( --enable-libphobos )
        is_go  && GCC_LANG+=",go"
        if is_objc || is_objcxx ; then
                GCC_LANG+=",objc"

Reply via email to