public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r11-9409] libphobos: Add power*-*-freebsd* as supported target
Date: Tue, 21 Dec 2021 16:19:54 +0000 (GMT)	[thread overview]
Message-ID: <20211221161954.D05F13858401@sourceware.org> (raw)

https://gcc.gnu.org/g:ecc83ab1df42016e41d0701278b86a3006186998

commit r11-9409-gecc83ab1df42016e41d0701278b86a3006186998
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Dec 21 15:03:47 2021 +0100

    libphobos: Add power*-*-freebsd* as supported target
    
    This has been tested on powerpc64-freebsd13 and powerpc64le-freebsd13,
    and used to build dub, along with some D tools from ports.
    
    libphobos/ChangeLog:
    
            * configure.tgt: Add power*-*-freebsd* as a supported target.
            * libdruntime/core/sys/freebsd/config.d: Define
              __FreeBSD_version for FreeBSD_13 targets.
    
    (cherry picked from commit 0c3fc06c300f5b71f299812c7fcac82b0236e5ac)

Diff:
---
 libphobos/configure.tgt                         | 3 +++
 libphobos/libdruntime/core/sys/freebsd/config.d | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt
index 88c027d0c28..0643daeb613 100644
--- a/libphobos/configure.tgt
+++ b/libphobos/configure.tgt
@@ -39,6 +39,9 @@ case "${target}" in
   mips*-*-linux*)
 	LIBPHOBOS_SUPPORTED=yes
 	;;
+  power*-*-freebsd*)
+	LIBPHOBOS_SUPPORTED=yes
+	;;
   power*-*-linux*)
 	LIBPHOBOS_SUPPORTED=yes
 	LIBDRUNTIME_ONLY=yes
diff --git a/libphobos/libdruntime/core/sys/freebsd/config.d b/libphobos/libdruntime/core/sys/freebsd/config.d
index 4eda066b293..ead941c0e67 100644
--- a/libphobos/libdruntime/core/sys/freebsd/config.d
+++ b/libphobos/libdruntime/core/sys/freebsd/config.d
@@ -13,7 +13,8 @@ public import core.sys.posix.config;
 // __FreeBSD_version numbers are documented in the Porter's Handbook.
 // NOTE: When adding newer versions of FreeBSD, verify all current versioned
 // bindings are still compatible with the release.
-     version (FreeBSD_12) enum __FreeBSD_version = 1202000;
+     version (FreeBSD_13) enum __FreeBSD_version = 1300000;
+else version (FreeBSD_12) enum __FreeBSD_version = 1202000;
 else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
 else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
 else version (FreeBSD_9)  enum __FreeBSD_version = 903000;


                 reply	other threads:[~2021-12-21 16:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211221161954.D05F13858401@sourceware.org \
    --to=ibuclaw@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).