From 872272205d95bdba33798c94e72c5387a31bc806 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 17 May 2024 19:40:50 +0100 Subject: [PATCH] Update uses of LazyPath The 'path' union field got removed upstream. See: https://github.com/ziglang/zig/pull/19826 --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 0601a1a..742bf16 100644 --- a/build.zig +++ b/build.zig @@ -5,11 +5,11 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const args_mod = b.addModule("args", .{ - .root_source_file = .{ .path = "args.zig" }, + .root_source_file = b.path("args.zig"), }); const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "args.zig" }, + .root_source_file = b.path("args.zig"), .optimize = optimize, .target = target, }); @@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void { const demo_exe = b.addExecutable(.{ .name = "demo", - .root_source_file = .{ .path = "demo.zig" }, + .root_source_file = b.path("demo.zig"), .optimize = optimize, .target = target, }); @@ -35,7 +35,7 @@ pub fn build(b: *std.Build) void { const demo_verb_exe = b.addExecutable(.{ .name = "demo_verb", - .root_source_file = .{ .path = "demo_verb.zig" }, + .root_source_file = b.path("demo_verb.zig"), .optimize = optimize, .target = target, });