Libmv: Add loong64 support in build_config.h

Following #130916.

Add definitions for LoongArch64 to build_config.h as well to allow proper
detection of CPU type when building on loongarch64 platforms.

Pull Request: https://projects.blender.org/blender/blender/pulls/152100
This commit is contained in:
Elysia
2025-12-31 11:53:12 +01:00
committed by Sergey Sharybin
parent d63c8dc4a9
commit d0b3461dd0

View File

@ -321,6 +321,11 @@
#elif defined(__pnacl__) || defined(__asmjs__) || defined(__wasm__)
# define ARCH_CPU_32_BITS 1
# define ARCH_CPU_LITTLE_ENDIAN 1
#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
#elif defined(__MIPSEL__)
# if defined(__LP64__)
# define ARCH_CPU_MIPS_FAMILY 1
@ -389,6 +394,9 @@
#if !defined(ARCH_CPU_ARM_FAMILY)
# define ARCH_CPU_ARM_FAMILY 0
#endif
#if !defined(ARCH_CPU_LOONG_FAMILY)
# define ARCH_CPU_LOONG_FAMILY 0
#endif
#if !defined(ARCH_CPU_MIPS_FAMILY)
# define ARCH_CPU_MIPS_FAMILY 0
#endif