From 7c9f67c0642d263505fdc9fdb90389d792730bd3 Mon Sep 17 00:00:00 2001 From: YANG Xudong Date: Mon, 22 Jul 2024 15:12:50 +0800 Subject: [PATCH] std: fix consts value for stack size on linux for loongarch64. --- lib/std/os/linux.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index c6b53d6f0dab..c065e12edaa3 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -4784,12 +4784,13 @@ pub fn CPU_COUNT(set: cpu_set_t) cpu_count_t { pub const MINSIGSTKSZ = switch (native_arch) { .x86, .x86_64, .arm, .mipsel => 2048, + .loongarch64 => 4096, .aarch64 => 5120, else => @compileError("MINSIGSTKSZ not defined for this architecture"), }; pub const SIGSTKSZ = switch (native_arch) { .x86, .x86_64, .arm, .mipsel => 8192, - .aarch64 => 16384, + .aarch64, .loongarch64 => 16384, else => @compileError("SIGSTKSZ not defined for this architecture"), };