From 0df6a6a7d962cb467f66b3073e47a2823f04845f Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Fri, 27 May 2022 09:52:24 -0500 Subject: [PATCH] feat(Platform): LoongArch support #3460 --- Foundation/include/Poco/Platform.h | 3 +++ Foundation/src/utils.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h index f5a9a7fe9..4883ba225 100644 --- a/Foundation/include/Poco/Platform.h +++ b/Foundation/include/Poco/Platform.h @@ -234,6 +234,9 @@ #define POCO_ARCH POCO_ARCH_RISCV32 #define POCO_ARCH_LITTLE_ENDIAN 1 #endif +#elif defined(__loongarch64) + #define POCO_ARCH POCO_ARCH_LOONGARCH64 + #define POCO_ARCH_LITTLE_ENDIAN 1 #endif diff --git a/Foundation/src/utils.h b/Foundation/src/utils.h index 0a222c77d..de529b6cd 100644 --- a/Foundation/src/utils.h +++ b/Foundation/src/utils.h @@ -101,6 +101,7 @@ int main(int argc, char** argv) { defined(_MIPS_ARCH_MIPS32R2) || defined(__ARMEB__) ||\ defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ defined(__riscv) || \ + defined(__loongarch64) || \ defined(__or1k__) || defined(__arc__) || \ defined(__EMSCRIPTEN__) || \ defined(nios2) || defined(__nios2) || defined(__nios2__)