Skip to content

Commit

Permalink
Update uses of LazyPath
Browse files Browse the repository at this point in the history
The 'path' union field got removed upstream.

See: ziglang/zig#19826
  • Loading branch information
linusg committed May 17, 2024
1 parent adb6569 commit 14e1dd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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,
});
Expand All @@ -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,
});
Expand Down

0 comments on commit 14e1dd7

Please sign in to comment.