Browse Source

Merge branch 'upstream-KWIML' into update-kwiml

# By KWIML Upstream
* upstream-KWIML:
  KWIML 2025-08-05 (2eae04db)
Brad King 2 tháng trước cách đây
mục cha
commit
e936fa9036
2 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 1 1
      Utilities/KWIML/CMakeLists.txt
  2. 4 0
      Utilities/KWIML/include/kwiml/abi.h

+ 1 - 1
Utilities/KWIML/CMakeLists.txt

@@ -4,7 +4,7 @@
 # See accompanying file Copyright.txt for details.
 #
 if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
-  cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
+  cmake_minimum_required(VERSION 3.13..4.0 FATAL_ERROR)
   set(kwiml_standalone 1)
   project(KWIML)
   include(CTest)

+ 4 - 0
Utilities/KWIML/include/kwiml/abi.h

@@ -481,6 +481,10 @@ suppression macro KWIML_ABI_NO_VERIFY was defined.
 #elif defined(__riscv) || defined(__riscv__)
 # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
 
+/* Sunway */
+#elif defined(__sw_64) || defined(__sw_64__)
+# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
+
 /* Unknown CPU */
 #elif !defined(KWIML_ABI_NO_ERROR_ENDIAN)
 # error "Byte order of target CPU unknown."