main: increase thread stack size for non-x86_64 backends

I observed a stack overflow during x86_64 CodeGen in a debug compiler
compiled by the llvm backend.  This happens while compiling
`main.buildOutputType` due to the Air being nested almost 500 levels.
This commit is contained in:
Jacob Young 2025-02-14 05:42:10 -05:00
parent 4ea18c22f9
commit f98f5a5f74

View File

@ -39,10 +39,7 @@ test {
_ = Package;
}
const thread_stack_size = switch (builtin.zig_backend) {
else => std.Thread.SpawnConfig.default_stack_size,
.stage2_x86_64 => 32 << 20,
};
const thread_stack_size = 32 << 20;
pub const std_options: std.Options = .{
.wasiCwd = wasi_cwd,