public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libphobos, Darwin: Enable libphobos for most Darwin.
@ 2024-04-02 11:51 Iain Sandoe
  2024-04-02 21:16 ` Iain Buclaw
  0 siblings, 1 reply; 2+ messages in thread
From: Iain Sandoe @ 2024-04-02 11:51 UTC (permalink / raw)
  To: gcc-patches; +Cc: ibuclaw

I have been building and testing D/libphobos for some time and over
some GCC and OS releases.  As discussed on IRC a while ago, I think
we're ready to enable this (it also avoids an annoying build fail at
stage 2 if one forgets to add the enable to the command line).

Also tested on x86_64 and powerpc64 linux gnu.

OK for trunk?
OK for backports?
thanks,
Iain

--- 8< ---

Earlier Darwin systems can be made to work too - but they need non-
standard 'binutils', so for now these must be enabled specifically.

libphobos/ChangeLog:

	* configure.tgt: Enable libphobos for Darwin >= 12.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
 libphobos/configure.tgt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt
index 13879380416..71596444488 100644
--- a/libphobos/configure.tgt
+++ b/libphobos/configure.tgt
@@ -27,6 +27,9 @@ case "${target}" in
   *-*-dragonfly*)
 	LIBPHOBOS_SUPPORTED=yes
 	;;
+  aarch64-*-darwin2*)
+	LIBPHOBOS_SUPPORTED=yes
+	;;
   aarch64*-*-linux*)
 	LIBPHOBOS_SUPPORTED=yes
 	;;
@@ -58,6 +61,12 @@ case "${target}" in
   sparc*-*-solaris2.11*)
 	LIBPHOBOS_SUPPORTED=yes
 	;;
+  *-*-darwin9* | *-*-darwin1[01]*)
+	LIBDRUNTIME_ONLY=yes
+	;;
+  x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7])
+	LIBPHOBOS_SUPPORTED=yes
+	;;
   x86_64-*-freebsd* | i?86-*-freebsd*)
 	LIBPHOBOS_SUPPORTED=yes
 	;;
-- 
2.39.2 (Apple Git-143)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libphobos, Darwin: Enable libphobos for most Darwin.
  2024-04-02 11:51 [PATCH] libphobos, Darwin: Enable libphobos for most Darwin Iain Sandoe
@ 2024-04-02 21:16 ` Iain Buclaw
  0 siblings, 0 replies; 2+ messages in thread
From: Iain Buclaw @ 2024-04-02 21:16 UTC (permalink / raw)
  To: gcc-patches, iain

Excerpts from Iain Sandoe's message of April 2, 2024 1:51 pm:
> I have been building and testing D/libphobos for some time and over
> some GCC and OS releases.  As discussed on IRC a while ago, I think
> we're ready to enable this (it also avoids an annoying build fail at
> stage 2 if one forgets to add the enable to the command line).
> 
> Also tested on x86_64 and powerpc64 linux gnu.
> 
> OK for trunk?
> OK for backports?
> thanks,
> Iain
> 

If you're confident, OK, let's enable it.

Iain.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-02 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 11:51 [PATCH] libphobos, Darwin: Enable libphobos for most Darwin Iain Sandoe
2024-04-02 21:16 ` Iain Buclaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).