From 1ec33952000241626208a94136921a684fb5d213 Mon Sep 17 00:00:00 2001 From: KWIML Upstream Date: Tue, 5 Aug 2025 09:32:31 -0400 Subject: [PATCH] KWIML 2025-08-05 (2eae04db) Code extracted from: https://gitlab.kitware.com/utils/kwiml.git at commit 2eae04db635472d14c9e18b96c5297c0257c9925 (master). Upstream Shortlog ----------------- Brad King (1): 2eae04db cmake: Require 3.13 and enable policies through 4.0 Verney7 (1): 056a6c62 abi.h: Add sw_64 support --- CMakeLists.txt | 2 +- include/kwiml/abi.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d158843de..843ff2bf0b 100644 --- a/CMakeLists.txt +++ b/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) diff --git a/include/kwiml/abi.h b/include/kwiml/abi.h index cefe9ce2c2..9b2358099a 100644 --- a/include/kwiml/abi.h +++ b/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."