authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:11:13 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:11:13 -07:00
logcfcdea2b9036880eee995e45396adfad936e5c73
treea00d1f54210bf0f35307580367e7d9f2f52406d1
parented2d27add43ab96584365e7ae40b5bf28ff9e07b
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


1 files changed, 6 insertions(+), 4 deletions(-)

build.zig+6-4
...@@ -2,15 +2,17 @@ const std = @import("std");...@@ -2,15 +2,17 @@ const std = @import("std");
22
3pub fn build(b: *std.Build) void {3pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});4 const target = b.standardTargetOptions(.{});
5 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;5 const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug;
6 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;6 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
77
8 const mod = b.addModule("cookies", .{ .root_source_file = b.path("cookies.zig") });8 const mod = b.addModule("cookies", .{ .root_source_file = b.path("cookies.zig") });
99
10 const tests = b.addTest(.{10 const tests = b.addTest(.{
11 .root_source_file = b.path("test.zig"),11 .root_module = b.createModule(.{
12 .target = target,12 .root_source_file = b.path("test.zig"),
13 .optimize = mode,13 .target = target,
14 .optimize = mode,
15 }),
14 });16 });
15 tests.root_module.addImport("cookies", mod);17 tests.root_module.addImport("cookies", mod);
16 tests.root_module.link_libc = true;18 tests.root_module.link_libc = true;