diff options
Diffstat (limited to 'build/tools.zig')
| -rw-r--r-- | build/tools.zig | 4 |
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); |
