diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-12-21 15:03:47 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-12-21 17:13:18 +0100 |
commit | ecc83ab1df42016e41d0701278b86a3006186998 (patch) | |
tree | 1e476d87e3541767373c35e9a5d83a615ca48545 /libphobos | |
parent | 96a09dec2421af3e201f5a54dadb35f00917ea5b (diff) | |
download | gcc-ecc83ab1df42016e41d0701278b86a3006186998.zip gcc-ecc83ab1df42016e41d0701278b86a3006186998.tar.gz gcc-ecc83ab1df42016e41d0701278b86a3006186998.tar.bz2 |
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)
Diffstat (limited to 'libphobos')
-rw-r--r-- | libphobos/configure.tgt | 3 | ||||
-rw-r--r-- | libphobos/libdruntime/core/sys/freebsd/config.d | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt index 88c027d..0643dae 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 4eda066..ead941c0 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; |