authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:11:28 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:11:28 -07:00
logd977338a093e05f9a0ff1610a66c86b50eefb3df
treec306e40fa7893d567d6da8fbd14bc05e2de1a95f
parent25f49eccc782ade9c0a32ba80c7e7c8f44353f2a
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


1 files changed, 12 insertions(+), 8 deletions(-)

build.zig+12-8
......@@ -3,7 +3,7 @@ const deps = @import("./deps.zig");
33
44pub fn build(b: *std.Build) void {
55 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
6 const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug;
77 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
88
99 const step = b.option([]const u8, "step", "") orelse "run";
......@@ -16,9 +16,11 @@ pub fn build(b: *std.Build) void {
1616 }
1717
1818 const tests = b.addTest(.{
19 .root_source_file = b.path("test.zig"),
20 .target = target,
21 .optimize = mode,
19 .root_module = b.createModule(.{
20 .root_source_file = b.path("test.zig"),
21 .target = target,
22 .optimize = mode,
23 }),
2224 });
2325 deps.addAllTo(tests);
2426 tests.use_llvm = !disable_llvm;
......@@ -31,12 +33,14 @@ pub fn build(b: *std.Build) void {
3133 test_step.dependOn(&tests_run.step);
3234}
3335
34fn addExeStep(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.Mode, name: []const u8, root_src: []const u8, sdescription: []const u8) void {
36fn addExeStep(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.OptimizeMode, name: []const u8, root_src: []const u8, sdescription: []const u8) void {
3537 const exe = b.addExecutable(.{
3638 .name = name,
37 .root_source_file = b.path(root_src),
38 .target = target,
39 .optimize = mode,
39 .root_module = b.createModule(.{
40 .root_source_file = b.path(root_src),
41 .target = target,
42 .optimize = mode,
43 }),
4044 });
4145 deps.addAllTo(exe);
4246 b.installArtifact(exe);