summaryrefslogtreecommitdiff
path: root/build/snap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/snap.zig')
-rw-r--r--build/snap.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/snap.zig b/build/snap.zig
index ece84ad4..ad06486a 100644
--- a/build/snap.zig
+++ b/build/snap.zig
@@ -77,6 +77,10 @@ pub fn addTty(b: *std.Build, opts: struct {
run_replay.addArtifactArg(opts.exe);
run_replay.addPrefixedFileArg("--lspmock=", lspmock.getEmittedBin());
run_replay.addArgs(&.{ "--tape=" ++ tapes, "--dump" });
+ // Each script's tape replayed by another build too: a window's build
+ // replaying a terminal's sessions, as its replica of one does.
+ if (b.option([]const u8, "replay-with", "another build of pardes `zig build replay` replays every script's tape with too (a pardes-gui, say)")) |other|
+ run_replay.addArg(b.fmt("--replay-with={s}", .{other}));
run_replay.setCwd(b.path("."));
run_replay.has_side_effects = true;
const seeds = b.option(u32, "replay-seeds", "monkey seeds `zig build replay` records and replays (default 20)") orelse 20;