feat(Platform): LoongArch support #3460

This commit is contained in:
Alex Fabijanic 2022-05-27 09:52:24 -05:00
parent 6ab38be5b0
commit 0df6a6a7d9
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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__)