mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user