summaryrefslogtreecommitdiff
path: root/abi/wire.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 22:17:29 -0300
committerGabriel Schneider <[email protected]>2026-11-19 23:08:49 -0300
commit55a5f91305df47cd56d7776f4193b6198208e891 (patch)
treec6a885b6a4d8bcc60dc1c9958473ee8c0a21f4a1 /abi/wire.zig
parent0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (diff)
downloadpardes-55a5f91305df47cd56d7776f4193b6198208e891.tar.gz
pardes-55a5f91305df47cd56d7776f4193b6198208e891.zip
build: the dead and the doubled options go (the start design's step 1, pardes-build-options change 1): `ShellConfig.prebuilt_shaders`, set at build.zig:147 and read nowhere (the `-Dprebuilt-shaders` flag stays: gui.make hands it to sketchbook and the perf identity names it); `tools.add` and `core.assemble` handed the grammar set and -Dtracy beside the `shell_cfg` that holds them (`ShellConfig.tracy` is the checkout's path now, so Parts and the perf identity read it there); `syntax_zig_grammar`, always equal to `syntax_highlighting`; and the four `syntax_*` bools as the one enum they said four ways, `grammars` (`-Dtree-sitter`'s `TreeSitterGrammars`), read by syntax.zig, Output.zig's Build pane and three tests, with abi/wire.zig hashing it as the four words it was hashed as, so `pardes version`'s semantics line did not move on any product (38b5ae573b965550 on tui, gui, the bare build's two, both statics, FreeBSD; d41689a1f97605b8 with -Dtree-sitter=minimal, as on the base); build.zig and build/ 3,005 -> 2,992 lines; every shape configures (12 configurations) and builds as on the base (tui, gui, bare, the macOS library for Linux and aarch64-macos, static on musl and on the window, FreeBSD, -Dtree-sitter=minimal), and the two that fail on the base fail with the same errors (pardes-isolate: core/builtins.zig:510, core/ninep/ctl.zig:1298; -Dtree-sitter=disabled: core/indent.zig:48); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test, hxlib 538 cases 0 mismatches, process-test 3 of 144 failed (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, on the flaky list: passed alone, 1364 ms), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); load 15-45 on 16 cores
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'abi/wire.zig')
-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);
};