mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01: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
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue