From 3999975c29e273d6848218ca0f00a4548e196e23 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Tue, 17 Jun 2025 20:20:26 +0200 Subject: [PATCH] Build: Add loong64 support in BLI_build_config.h LoongArch is a new RISC ISA developed by Loongson, this adds the missing entry to BLI_build_config.h. It has been verified to work on Arch Linux's loong64 port. Pull Request: https://projects.blender.org/blender/blender/pulls/130916 --- source/blender/blenlib/BLI_build_config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/blender/blenlib/BLI_build_config.h b/source/blender/blenlib/BLI_build_config.h index dff2096ffd2..bbbb75edf33 100644 --- a/source/blender/blenlib/BLI_build_config.h +++ b/source/blender/blenlib/BLI_build_config.h @@ -357,6 +357,11 @@ # else # define ARCH_CPU_BIG_ENDIAN 1 # endif +#elif defined(__loongarch_lp64) +# define ARCH_CPU_LOONG_FAMILY 1 +# define ARCH_CPU_LOONG64 1 +# define ARCH_CPU_64_BITS 1 +# define ARCH_CPU_LITTLE_ENDIAN 1 #else # error Please add support for your architecture in BLI_build_config.h #endif @@ -399,6 +404,9 @@ #if !defined(ARCH_CPU_RISCV_FAMILY) # define ARCH_CPU_RISCV_FAMILY 0 #endif +#if !defined(ARCH_CPU_LOONG_FAMILY) +# define ARCH_CPU_LOONG_FAMILY 0 +#endif #if !defined(ARCH_CPU_ARM64) # define ARCH_CPU_ARM64 0 @@ -442,5 +450,8 @@ #if !defined(ARCH_CPU_RISCV128) # define ARCH_CPU_RISCV128 0 #endif +#if !defined(ARCH_CPU_LOONG64) +# define ARCH_CPU_LOONG64 0 +#endif /** \} */