diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-06-13 20:36:51 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-06-13 15:25:18 -0400 |
| commit | ff79b87fa062d602722a6ec17f74550cda42a624 (patch) | |
| tree | a08a33c1f2160724fc5436ad6f527fa1c4264aad /tools/update_spirv_features.zig | |
| parent | 37f36da391570739e639f857bef3de1170eaac50 (diff) | |
| download | zig-ff79b87fa062d602722a6ec17f74550cda42a624.tar.gz zig-ff79b87fa062d602722a6ec17f74550cda42a624.zip | |
tools: Unbreak many tools
Many tools were broken after the recent hash-table refactorings, fix
them and ensure they won't silently break again.
Diffstat (limited to 'tools/update_spirv_features.zig')
| -rw-r--r-- | tools/update_spirv_features.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/update_spirv_features.zig b/tools/update_spirv_features.zig index da1cefcd9c..5f2bab6c28 100644 --- a/tools/update_spirv_features.zig +++ b/tools/update_spirv_features.zig @@ -68,6 +68,9 @@ pub fn main() !void { usageAndExit(std.io.getStdErr(), args[0], 1); } + // Required for json parsing. + @setEvalBranchQuota(10000); + const registry_path = try fs.path.join(allocator, &.{ spirv_headers_root, "include", "spirv", "unified1", "spirv.core.grammar.json" }); const registry_json = try std.fs.cwd().readFileAlloc(allocator, registry_path, std.math.maxInt(usize)); var tokens = std.json.TokenStream.init(registry_json); |
