loong64: base: Set pthread stack size

This commit is contained in:
klzgrad 2025-04-05 19:23:11 +08:00
parent 0786c78ad4
commit 14dbd271d6

View file

@ -55,7 +55,7 @@ namespace base {
// defined as a constant.
// These constants are borrowed from glibcs (arch)/bits/pthread_stack_min.h.
#if defined(ARCH_CPU_ARM64)
#if defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_LOONGARCH64)
#define PTHREAD_STACK_MIN_CONST \
(__builtin_constant_p(PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : 131072)
#else