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
This commit is contained in:
wszqkzqk
2025-06-17 20:20:26 +02:00
committed by Brecht Van Lommel
parent 1692817b5e
commit 3999975c29

View File

@@ -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
/** \} */