aboutsummaryrefslogtreecommitdiff
path: root/libphobos/configure
diff options
context:
space:
mode:
authorYang Yujie <yangyujie@loongson.cn>2023-12-08 18:09:42 +0800
committerLulu Cheng <chenglulu@loongson.cn>2023-12-18 10:04:31 +0800
commitecedb59617555a7bec7dac8a3f15324e31e2604e (patch)
tree792a78ae6a571a783fe030f50211a34065cb9f01 /libphobos/configure
parenta281f87f0de4fd64197c3a7b63faf96a05060ce9 (diff)
downloadgcc-ecedb59617555a7bec7dac8a3f15324e31e2604e.zip
gcc-ecedb59617555a7bec7dac8a3f15324e31e2604e.tar.gz
gcc-ecedb59617555a7bec7dac8a3f15324e31e2604e.tar.bz2
libphobos: Update build scripts for LoongArch64.
libphobos/ChangeLog: * m4/druntime/cpu.m4: Support loongarch* targets. * libdruntime/Makefile.am: Same. * libdruntime/Makefile.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'libphobos/configure')
-rwxr-xr-xlibphobos/configure21
1 files changed, 19 insertions, 2 deletions
diff --git a/libphobos/configure b/libphobos/configure
index 25b13bd..9a59bad 100755
--- a/libphobos/configure
+++ b/libphobos/configure
@@ -696,6 +696,8 @@ DRUNTIME_CPU_POWERPC_FALSE
DRUNTIME_CPU_POWERPC_TRUE
DRUNTIME_CPU_MIPS_FALSE
DRUNTIME_CPU_MIPS_TRUE
+DRUNTIME_CPU_LOONGARCH_FALSE
+DRUNTIME_CPU_LOONGARCH_TRUE
DRUNTIME_CPU_ARM_FALSE
DRUNTIME_CPU_ARM_TRUE
DRUNTIME_CPU_AARCH64_FALSE
@@ -11865,7 +11867,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11868 "configure"
+#line 11870 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11971,7 +11973,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11974 "configure"
+#line 11976 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -14305,6 +14307,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
;;
arm*) druntime_target_cpu_parsed="arm"
;;
+ loongarch*)
+ druntime_target_cpu_parsed="loongarch"
+ ;;
mips*) druntime_target_cpu_parsed="mips"
;;
powerpc*)
@@ -14336,6 +14341,14 @@ else
DRUNTIME_CPU_ARM_FALSE=
fi
+ if test "$druntime_target_cpu_parsed" = "loongarch"; then
+ DRUNTIME_CPU_LOONGARCH_TRUE=
+ DRUNTIME_CPU_LOONGARCH_FALSE='#'
+else
+ DRUNTIME_CPU_LOONGARCH_TRUE='#'
+ DRUNTIME_CPU_LOONGARCH_FALSE=
+fi
+
if test "$druntime_target_cpu_parsed" = "mips"; then
DRUNTIME_CPU_MIPS_TRUE=
DRUNTIME_CPU_MIPS_FALSE='#'
@@ -15997,6 +16010,10 @@ if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; th
as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${DRUNTIME_CPU_LOONGARCH_TRUE}" && test -z "${DRUNTIME_CPU_LOONGARCH_FALSE}"; then
+ as_fn_error $? "conditional \"DRUNTIME_CPU_LOONGARCH\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5