build: increase comptime branch quota for ghostty.h enum checks

The MSVC translate-c output includes Windows SDK declarations,
bringing the total to ~2173 declarations (vs ~1502 on Linux/Mac).
The nested inline for in checkGhosttyHEnum (enum fields x declarations)
exceeds the 1M comptime branch quota for larger enums like MouseShape
(34 variants). Increase to 10M to accommodate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alessandro De Blasis
2026-03-24 18:04:50 +01:00
parent ce99300513
commit 68378a0bb8

View File

@@ -105,7 +105,7 @@ pub fn checkGhosttyHEnum(
try std.testing.expect(info.@"enum".tag_type == c_int);
try std.testing.expect(info.@"enum".is_exhaustive == true);
@setEvalBranchQuota(1000000);
@setEvalBranchQuota(10_000_000);
const c = @import("ghostty.h");