summaryrefslogtreecommitdiff
path: root/build/tools.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 20:37:01 -0300
committerGabriel Schneider <[email protected]>2026-11-18 20:37:01 -0300
commit5b33c88476054fffc1044fff0526f7f0b28563cf (patch)
treef96c7b718041c43170b5e1c8a93b369a2bda3279 /build/tools.zig
parent39ce335d7ca06b8095be2d953c240bac354868e5 (diff)
parent6e1da675ec9d18672fea7748f389e59a73c692a6 (diff)
downloadpardes-5b33c88476054fffc1044fff0526f7f0b28563cf.tar.gz
pardes-5b33c88476054fffc1044fff0526f7f0b28563cf.zip
integration: pardes-perf refusing to start without its image addon, with the PDF back in the soak and the client path's five rounds: no conflict; on Zig 0.17.1: gui unit-test 1594/1598 and tui unit-test 1540/1544, each with its perf check passing; tui core-test 821/962 (141 skipped), shell-test 997/1000; the base of the reorganisation's tree step
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build/tools.zig')
-rw-r--r--build/tools.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/tools.zig b/build/tools.zig
index 9b18019b..92217c4e 100644
--- a/build/tools.zig
+++ b/build/tools.zig
@@ -198,9 +198,9 @@ pub fn add(b: *std.Build, c: struct {
.terminal_simd = c.ghostty_simd,
.prebuilt_shaders = c.platform == .gui and c.prebuilt_shaders,
});
+ // Relative to the build root, where `zig build perf` runs it: perf.zig
+ // refuses to start when it is not there (a wiped cache, another directory).
perf_options.addOptionPath("image_addon", c.image_addon.getEmittedBin());
- perf_options.addOption(bool, "has_pdf_addon", c.pdf_addon != null);
- if (c.pdf_addon) |l| perf_options.addOptionPath("pdf_addon", l.getEmittedBin());
const perf = program(b, "pardes-perf", "test/perf.zig", c.target, perf_optimize, &.{.{ .name = "pardes", .module = c.core_module }});
// --live drives the real binary through a pty (test/e2e_harness.zig).
if (c.ghostty_vt_for_tests) |vt| perf.root_module.addImport("ghostty-vt", vt);