Skip to content

Commit c6f4bbc

Browse files
committed
compiler: bump stack size 32MiB -> 46 MiB
Before the prior commit, the maximum comptime recursion depth on my system was 4062. After the prior commit, it decreased to 2854. This commit increases the compiler's stack size enough so that the recursion depth limit is no less than it was before the `Sema.analyzeCall` rewrite, preventing this from being a breaking change. Specifically, this stack size increases my observed maximum comptime recursion depth to 4105.
1 parent e9bd2d4 commit c6f4bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const assert = std.debug.assert;
1111
const DevEnv = @import("src/dev.zig").Env;
1212

1313
const zig_version: std.SemanticVersion = .{ .major = 0, .minor = 14, .patch = 0 };
14-
const stack_size = 32 * 1024 * 1024;
14+
const stack_size = 46 * 1024 * 1024;
1515

1616
pub fn build(b: *std.Build) !void {
1717
const only_c = b.option(bool, "only-c", "Translate the Zig compiler to C code, with only the C backend enabled") orelse false;

0 commit comments

Comments
 (0)