summaryrefslogtreecommitdiff
path: root/abi
diff options
context:
space:
mode:
Diffstat (limited to 'abi')
-rw-r--r--abi/wire.zig11
1 files changed, 7 insertions, 4 deletions
diff --git a/abi/wire.zig b/abi/wire.zig
index b2d32033..26a7131e 100644
--- a/abi/wire.zig
+++ b/abi/wire.zig
@@ -61,16 +61,19 @@ const family = switch (config.platform) {
/// their options and dependencies; -Dstamp-commit stamps one.
pub const semantics: u64 = blk: {
@setEvalBranchQuota(1_000_000);
+ // The grammar set as the four words it was hashed as when it was four
+ // options (highlighting, zig, minimal, full), so the hash stays.
+ const g = config.grammars;
// The two long ones (the dependencies, 2.5 KB, and the tape's shape,
// 11 KB) joined on, not formatted: formatting them at comptime was 5 %
// of a compile of the core.
break :blk std.hash.Wyhash.hash(0, std.fmt.comptimePrint(
"wire {d}\npardes {s} {s}\n{s} grammars {} {} {} {} workspace_tag {} sources {}\nusize {d} {t}\n",
.{
- version, config.version, config.commit orelse "unstamped",
- family, config.syntax_highlighting, config.syntax_zig_grammar,
- config.syntax_minimal_grammars, config.syntax_full_grammars, config.workspace_tag,
- config.embed_sources, @sizeOf(usize), builtin.cpu.arch.endian(),
+ version, config.version, config.commit orelse "unstamped",
+ family, g != .disabled, g != .disabled,
+ g == .minimal or g == .full, g == .full, config.workspace_tag,
+ config.embed_sources, @sizeOf(usize), builtin.cpu.arch.endian(),
},
) ++ config.deps ++ "\n" ++ pardes.tape.shape);
};