mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
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:
parent
4ea18c22f9
commit
f98f5a5f74
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user