authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:33:37 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:33:37 -08:00
logd96fd09fb721265373e5f48a7d017f776cea0415
tree5720324c1a86af12927f006ae4d52a6560ea2c75
parente946a144423cdb5dac3d46d6856c6e6da73e9305

update to zig 0.13


2 files changed, 8 insertions(+), 2 deletions(-)

.gitignore+1-1
......@@ -1,6 +1,6 @@
1zig-cache
21.zig-cache
32zig-out
43.zigmod
54deps.zig
5files.zig
66zigmod.lock
build.zig+7-1
......@@ -2,12 +2,18 @@ const std = @import("std");
22const deps = @import("./deps.zig");
33
44pub fn build(b: *std.Build) void {
5 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
7
58 const t = b.addTest(.{
6 .root_source_file = .{ .path = "main.zig" },
9 .root_source_file = b.path("main.zig"),
10 .target = target,
11 .optimize = mode,
712 });
813 deps.addAllTo(t);
914
1015 const run_t = b.addRunArtifact(t);
16 run_t.has_side_effects = true;
1117
1218 const t_step = b.step("test", "Run all the tests.");
1319 t_step.dependOn(&run_t.step);