diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -817,6 +817,10 @@ pub fn build(b: *std.Build) void { for (core_mods) |m| m.linkLibrary(zstd); } + // xitdb keeps what pardes writes to disk (src/Db.zig): pure Zig, no C + // library and no allocator hook of its own (it takes Zig allocators). + const xitdb_mod = b.dependency("xitdb", .{ .target = target, .optimize = optimize }).module("xitdb"); + // One call per module instead of one line per module per dependency, and // BEFORE the fold below, which reads what these imports put in the table. for (core_mods) |m| wireCore(m, .{ @@ -832,6 +836,7 @@ pub fn build(b: *std.Build) void { .vaxis = vaxis_mod, .uucode = uucode_mod, .wuffs = wuffs_mod, + .xitdb = xitdb_mod, }); const iso_off = b.addOptions(); @@ -1906,6 +1911,7 @@ fn wireCore(m: *std.Build.Module, d: struct { vaxis: ?*std.Build.Module = null, uucode: ?*std.Build.Module = null, wuffs: ?*std.Build.Module = null, + xitdb: ?*std.Build.Module = null, }) void { if (d.themes) |x| m.addImport("generated_themes", x); if (d.tree_sitter) |x| m.addImport("tree-sitter", x); @@ -1919,4 +1925,5 @@ fn wireCore(m: *std.Build.Module, d: struct { if (d.vaxis) |x| m.addImport("vaxis", x); if (d.uucode) |x| m.addImport("uucode", x); if (d.wuffs) |x| m.addImport("wuffs", x); + if (d.xitdb) |x| m.addImport("xitdb", x); } |
