From 55b8f31a1268b9d43274cea6aeca083850968910 Mon Sep 17 00:00:00 2001 From: Dandan Zhang Date: Fri, 20 Dec 2024 06:13:57 +0000 Subject: [PATCH] Add loongarch64 support --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 36fc8d5..e1a3605 100644 --- a/configure.ac +++ b/configure.ac @@ -90,6 +90,7 @@ SET_ARCH(IA64, ia64*) SET_ARCH(AARCH64, aarch64*) SET_ARCH(ARM, arm*) SET_ARCH(RISCV64, riscv64*) +SET_ARCH(LOONGARCH64, loongarch64*) ARCH=$(echo $host | sed "s/\(-\).*$//") @@ -109,6 +110,9 @@ AM_COND_IF(ARCH_ARM, [ AM_COND_IF(ARCH_RISCV64, [ MACHINE_TYPE_NAME=riscv64]) +AM_COND_IF(ARCH_LOONGARCH64, [ + MACHINE_TYPE_NAME=loongarch64]) + AC_SUBST([ARCH]) AC_SUBST([MACHINE_TYPE_NAME]) AM_CONDITIONAL([ARCH_IS_X86], [test "$ARCH" = "ia32" -o "$ARCH" = "x86_64"])