From 189b83c5017a6eff44f0f49e503cf2bd2965e582 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Mon, 11 Nov 2024 11:36:50 +0800
Subject: [PATCH] add sw64 support

---
 src/build-data/arch/sw_64.txt  | 3 +++
 src/build-data/detect_arch.cpp | 3 +++
 2 files changed, 6 insertions(+)
 create mode 100644 src/build-data/arch/sw_64.txt

diff --git a/src/build-data/arch/sw_64.txt b/src/build-data/arch/sw_64.txt
new file mode 100644
index 0000000..af225c5
--- /dev/null
+++ b/src/build-data/arch/sw_64.txt
@@ -0,0 +1,3 @@
+family sw_64
+endian little
+wordsize 64
diff --git a/src/build-data/detect_arch.cpp b/src/build-data/detect_arch.cpp
index 3a4bf8e..c49d3b1 100644
--- a/src/build-data/detect_arch.cpp
+++ b/src/build-data/detect_arch.cpp
@@ -44,6 +44,9 @@
 #elif defined(__alpha__)
   ALPHA
 
+#elif defined(__sw_64__)
+  SW_64
+
 #elif defined(__hppa__) || defined(__hppa)
   HPPA
 
-- 
2.33.0

