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 @@...@@ -1,6 +1,6 @@
1zig-cache
2.zig-cache1.zig-cache
3zig-out2zig-out
4.zigmod3.zigmod
5deps.zig4deps.zig
5files.zig
6zigmod.lock6zigmod.lock
build.zig+7-1
...@@ -2,12 +2,18 @@ const std = @import("std");...@@ -2,12 +2,18 @@ const std = @import("std");
2const deps = @import("./deps.zig");2const deps = @import("./deps.zig");
33
4pub fn build(b: *std.Build) void {4pub fn build(b: *std.Build) void {
5 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
7
5 const t = b.addTest(.{8 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,
7 });12 });
8 deps.addAllTo(t);13 deps.addAllTo(t);
914
10 const run_t = b.addRunArtifact(t);15 const run_t = b.addRunArtifact(t);
16 run_t.has_side_effects = true;
1117
12 const t_step = b.step("test", "Run all the tests.");18 const t_step = b.step("test", "Run all the tests.");
13 t_step.dependOn(&run_t.step);19 t_step.dependOn(&run_t.step);