From 9e1e9d71d72366e59aaf8f084a1a364f37f2fa91 Mon Sep 17 00:00:00 2001 From: Verney7 Date: Tue, 12 Aug 2025 12:20:18 +0800 Subject: [PATCH] Add support for sw_64 architecture Updated the configure script and test_lib.h to recognize and handle the sw_64 architecture, ensuring proper detection and reporting of compile-time flags for this platform. --- configure | 1 + librhash/test_lib.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/configure b/configure index eff314a..a4bf098 100755 --- a/configure +++ b/configure @@ -500,6 +500,7 @@ if test -z "$BUILD_TARGET"; then sh3|sh4|sh4a) HOST_ARCH=sh ;; s390) HOST_ARCH=s390 ;; s390x) HOST_ARCH=s390x ;; + sw_64) HOST_ARCH=sw_64 ;; *mips*) HOST_ARCH=mips ;; nios2) HOST_ARCH=nios2 ;; vax) HOST_ARCH=vax ;; diff --git a/librhash/test_lib.h b/librhash/test_lib.h index eb0d045..773dbf0 100644 --- a/librhash/test_lib.h +++ b/librhash/test_lib.h @@ -123,6 +123,15 @@ char* compiler_flags = "Compile-time flags:" #ifdef sparc " sparc" #endif +#ifdef __sw_64 + " __sw_64" +#endif +#ifdef __sw_64__ + " __sw_64__" +#endif +#ifdef sw_64 + " sw_64" +#endif #ifdef _ARCH_PPC " _ARCH_PPC" #endif