From: Iain Buclaw Date: Sun, 26 Apr 2020 09:32:57 +0000 (+0200) Subject: libphobos: Add power*-*-linux* as a supported target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b0cbe05822f349ef8bc32fc1138d2874b2f469c;p=gcc.git libphobos: Add power*-*-linux* as a supported target libphobos/ChangeLog: * configure: Regenerate. * configure.tgt: Add power*-*-linux* as a supported target, only building libdruntime. * m4/druntime/cpu.m4 (DRUNTIME_CPU_SOURCES): Add cases for powerpcle and powerpc64le target cpus. --- diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog index 3b89f9b00d9..ae894c64680 100644 --- a/libphobos/ChangeLog +++ b/libphobos/ChangeLog @@ -1,3 +1,11 @@ +2020-04-26 Iain Buclaw + + * configure: Regenerate. + * configure.tgt: Add power*-*-linux* as a supported target, only + building libdruntime. + * m4/druntime/cpu.m4 (DRUNTIME_CPU_SOURCES): Add cases for powerpcle + and powerpc64le target cpus. + 2020-04-21 Mathias Lang Iain Buclaw diff --git a/libphobos/configure b/libphobos/configure index c2b49132fda..c923417532f 100755 --- a/libphobos/configure +++ b/libphobos/configure @@ -13991,9 +13991,10 @@ fi ;; mips*) druntime_target_cpu_parsed="mips" ;; - powerpc) druntime_target_cpu_parsed="powerpc" + powerpc|powerpcle) + druntime_target_cpu_parsed="powerpc" ;; - powerpc64) + powerpc64|powerpc64le) druntime_target_cpu_parsed="powerpc64" ;; i[34567]86|x86_64) diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt index 66082e36fad..ce4cc1f7527 100644 --- a/libphobos/configure.tgt +++ b/libphobos/configure.tgt @@ -33,6 +33,10 @@ case "${target}" in mips*-*-linux*) LIBPHOBOS_SUPPORTED=yes ;; + power*-*-linux*) + LIBPHOBOS_SUPPORTED=yes + LIBDRUNTIME_ONLY=yes + ;; riscv*-*-linux*) LIBPHOBOS_SUPPORTED=yes ;; diff --git a/libphobos/m4/druntime/cpu.m4 b/libphobos/m4/druntime/cpu.m4 index 4887248fd09..6e88896ca66 100644 --- a/libphobos/m4/druntime/cpu.m4 +++ b/libphobos/m4/druntime/cpu.m4 @@ -17,9 +17,10 @@ AC_DEFUN([DRUNTIME_CPU_SOURCES], ;; mips*) druntime_target_cpu_parsed="mips" ;; - powerpc) druntime_target_cpu_parsed="powerpc" + powerpc|powerpcle) + druntime_target_cpu_parsed="powerpc" ;; - powerpc64) + powerpc64|powerpc64le) druntime_target_cpu_parsed="powerpc64" ;; i[[34567]]86|x86_64)