summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index e5a63532..d0730239 100644
--- a/build.zig
+++ b/build.zig
@@ -329,6 +329,14 @@ pub fn build(b: *std.Build) void {
root_mod.addImport("zstbi", zstbi_dep.module("root"));
hx_core_mod.addImport("zstbi", zstbi_dep.module("root"));
+ // mvzr: the regex engine behind `s` / `S` (helix select/split on a regex).
+ // A bytecode VM that compiles a RUNTIME pattern into a fixed-size struct
+ // with no allocator at all, which is exactly the shape an interactive
+ // prompt needs — see applySelRegex in src/pardes.zig.
+ const mvzr_mod = b.dependency("mvzr", .{ .target = target, .optimize = optimize }).module("mvzr");
+ root_mod.addImport("mvzr", mvzr_mod);
+ hx_core_mod.addImport("mvzr", mvzr_mod);
+
// ghostty-vt and vaxis both depend on uucode, but Zig forbids one source
// file in two modules — build a single uucode (our config, unpacked tables)
// and hand it to both. Same trick as the prototype; see uucode_config.zig.