diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-02-14 05:42:10 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2025-02-15 03:45:21 -0500 |
| commit | f98f5a5f742d3fb4400d288b716feecfc26a8238 (patch) | |
| tree | db4b3e5c042612c4a2b7b0728b5f9dfbc0175ef4 /src/main.zig | |
| parent | 4ea18c22f958c05aa5c715fc8823d704699746ec (diff) | |
| download | zig-f98f5a5f742d3fb4400d288b716feecfc26a8238.tar.gz zig-f98f5a5f742d3fb4400d288b716feecfc26a8238.zip | |
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.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index ce04a92765..773426dab9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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, |
