authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:18:22 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:18:22 -07:00
log5749ad161d389f0a4022f5263e2694e9a92d98dd
tree781642f28a918c89f6b5d8a954c6440baf76f3b3
parent1f5c9ddbe7fe0f5a1ea0df32e1724d2354449493
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


1 files changed, 7 insertions(+), 5 deletions(-)

build.zig+7-5
...@@ -3,7 +3,7 @@ const deps = @import("./deps.zig");...@@ -3,7 +3,7 @@ const deps = @import("./deps.zig");
33
4pub fn build(b: *std.Build) void {4pub fn build(b: *std.Build) void {
5 const target = b.standardTargetOptions(.{});5 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;
7 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;7 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
88
9 const mod = b.addModule("tracer", .{ .root_source_file = b.path("src/mod.zig") });9 const mod = b.addModule("tracer", .{ .root_source_file = b.path("src/mod.zig") });
...@@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void {...@@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void {
18 test_step.dependOn(b.getInstallStep());18 test_step.dependOn(b.getInstallStep());
19}19}
2020
21fn addTest(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.Mode, disable_llvm: bool, mod: *std.Build.Module, comptime backend: u8) void {21fn addTest(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.OptimizeMode, disable_llvm: bool, mod: *std.Build.Module, comptime backend: u8) void {
22 _ = mod;22 _ = mod;
23 const options = b.addOptions();23 const options = b.addOptions();
24 options.addOption(u8, "backend", backend);24 options.addOption(u8, "backend", backend);
...@@ -26,9 +26,11 @@ fn addTest(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.Mo...@@ -26,9 +26,11 @@ fn addTest(b: *std.Build, target: std.Build.ResolvedTarget, mode: std.builtin.Mo
2626
27 const exe = b.addExecutable(.{27 const exe = b.addExecutable(.{
28 .name = "test" ++ std.fmt.comptimePrint("{d}", .{backend}),28 .name = "test" ++ std.fmt.comptimePrint("{d}", .{backend}),
29 .root_source_file = b.path("src/main.zig"),29 .root_module = b.createModule(.{
30 .target = target,30 .root_source_file = b.path("src/main.zig"),
31 .optimize = mode,31 .target = target,
32 .optimize = mode,
33 }),
32 });34 });
33 deps.addAllTo(exe);35 deps.addAllTo(exe);
34 exe.linkLibC();36 exe.linkLibC();