Skip to content

Commit 4d9b760

Browse files
author
Antigravity Agent
committed
fix(build): Fix trinity-mcp and tri-kaggle build paths (#477)
1 parent f40dc9b commit 4d9b760

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

build.zig

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ pub fn build(b: *std.Build) void {
2727
.optimize = optimize,
2828
});
2929

30+
// Format conversion utilities
31+
const formats_mod = b.createModule(.{
32+
.root_source_file = b.path("src/formats.zig"),
33+
.target = target,
34+
.optimize = optimize,
35+
});
36+
3037
// ═══════════════════════════════════════════════════════════════════════════
3138
// ZODD DATALOG — CLARA Rules Engine (DARPA CLARA proposal)
3239
// ═══════════════════════════════════════════════════════════════════════════
@@ -144,6 +151,24 @@ pub fn build(b: *std.Build) void {
144151
libqueen_step.dependOn(&install_queen_static.step);
145152
libqueen_step.dependOn(&install_queen_header.step);
146153

154+
// ═════════════════════════════════════════════════════════════════════════
155+
// MNIST Real Data Benchmark — Phase 2 (Quantized)
156+
// ═══════════════════════════════════════════════════════════════════════════
157+
const bench_mnist = b.addExecutable(.{
158+
.name = "bench-mnist",
159+
.root_module = b.createModule(.{
160+
.root_source_file = b.path("src/bench_mnist.zig"),
161+
.target = target,
162+
.optimize = .ReleaseFast,
163+
}),
164+
});
165+
bench_mnist.root_module.addImport("formats", formats_mod);
166+
b.installArtifact(bench_mnist);
167+
168+
const bench_mnist_step = b.step("bench-mnist", "Run MNIST benchmark (Phase 2)");
169+
const run_mnist = b.addRunArtifact(bench_mnist);
170+
bench_mnist_step.dependOn(&run_mnist.step);
171+
147172
// Cross-platform libvsa release builds
148173
const libvsa_release_step = b.step("release-libvsa", "Build libtrinity-vsa for all platforms");
149174

@@ -513,7 +538,7 @@ pub fn build(b: *std.Build) void {
513538
const tri_kaggle = b.addExecutable(.{
514539
.name = "tri-kaggle",
515540
.root_module = b.createModule(.{
516-
.root_source_file = b.path("src/kaggle/main_cli.zig"),
541+
.root_source_file = b.path("src/kaggle/clutrr_cli.zig"),
517542
.target = target,
518543
.optimize = optimize,
519544
.imports = &.{
@@ -1549,8 +1574,7 @@ pub fn build(b: *std.Build) void {
15491574
.{ .name = "vsa", .module = vsa_tri },
15501575
.{ .name = "treesitter_zig", .module = ts_zig_mod },
15511576
.{ .name = "tri_train", .module = tri_train_mod },
1552-
// FIXME: resurrect trinity_workspace when queen backend is implemented for CLARA
1553-
// .{ .name = "trinity_workspace", .module = trinity_workspace_mod },
1577+
.{ .name = "trinity_workspace", .module = trinity_workspace_mod },
15541578
},
15551579
}),
15561580
});

0 commit comments

Comments
 (0)