summaryrefslogtreecommitdiff
path: root/abi/wire.zig
diff options
context:
space:
mode:
Diffstat (limited to 'abi/wire.zig')
-rw-r--r--abi/wire.zig16
1 files changed, 10 insertions, 6 deletions
diff --git a/abi/wire.zig b/abi/wire.zig
index b2d32033..1f7d02d2 100644
--- a/abi/wire.zig
+++ b/abi/wire.zig
@@ -7,7 +7,8 @@
const std = @import("std");
const builtin = @import("builtin");
const pardes = @import("core");
-const config = @import("pardes_config");
+const config = @import("pardes_options");
+const build_info = @import("build_info");
/// 23: a pane of a kind's frame names its rasters by key, their pixels
/// crossing before it as strips of 4 MiB at most over the rows it shows
@@ -61,18 +62,21 @@ 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, build_info.version, build_info.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);
+ ) ++ build_info.deps ++ "\n" ++ pardes.tape.shape);
};
/// EndOfStream: the message ends early; WriteFailed: no room for it.