From 8b1216b2ddaf9fbab12d5b686f142f0c99d472d1 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 16 May 2023 11:19:02 -0700 Subject: [PATCH] update build.zig for zig master --- build.zig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index ef7b33767c2867a43dff8c20f891ae793315af7c..94c589f78784a2eada5a451be57a9a5700aa12c2 100644 --- a/build.zig +++ b/build.zig @@ -2,9 +2,13 @@ const std = @import("std"); const deps = @import("./deps.zig"); pub fn build(b: *std.build.Builder) void { - const t = b.addTest("main.zig"); + const t = b.addTest(.{ + .root_source_file = .{ .path = "main.zig" }, + }); deps.addAllTo(t); + const run_t = b.addRunArtifact(t); + const t_step = b.step("run", "Run all the tests."); - t_step.dependOn(&t.step); + t_step.dependOn(&run_t.step); } -- 2.54.0