[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1043264: sunpinyin: Please add support for arch loongarch64



Package: sunpinyin
Version: 3.0.0~rc2+ds1-4
Severity: wishlist
Tags: patch
User: debian-devel@lists.debian.org
Usertags: loongarch64

Dear maintainers,

   When I compiled sunpinyin for loongarch architecture, it reported missing architecture support.
The error message is as follows,
In file included from src/portability.cpp:39:
./config.h:124:3: error: #error can not detect the endianness!
  124 | # error can not detect the endianness!
      |   ^~~~~

We have added loongarch architecture support for sunpinyin, the patch can be found in the attachment.

If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

Subject: [PATCH] Add loongarch64 support

---
 SConstruct | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index 9fce9bf..68c71a4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -349,7 +349,8 @@ def AppendEndianCheck(conf):
   || defined(__alpha__) || defined(__ARMEL__) \
   || defined(_MIPSEL)   || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \
   || defined(__riscv) \
-  || defined(__AARCH64EL__)
+  || defined(__AARCH64EL__) \
+  || defined(__loongarch__)
 # undef WORDS_BIGENDIAN
 
 #else
-- 
2.39.2


Reply to: