Skip to content

Commit c6ebc5b

Browse files
linusgikskuh
authored andcommitted
Update uses of LazyPath
The 'path' union field got removed upstream. See: ziglang/zig#19826
1 parent 358a028 commit c6ebc5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ pub fn build(b: *std.Build) void {
55
const optimize = b.standardOptimizeOption(.{});
66

77
const module = b.addModule("parser-toolkit", .{
8-
.root_source_file = .{ .path = "src/main.zig" },
8+
.root_source_file = b.path("src/main.zig"),
99
});
1010

1111
const main_tests = b.addTest(.{
12-
.root_source_file = .{ .path = "src/main.zig" },
12+
.root_source_file = b.path("src/main.zig"),
1313
.optimize = optimize,
1414
});
1515

1616
const test_step = b.step("test", "Run library tests");
1717
test_step.dependOn(&b.addRunArtifact(main_tests).step);
1818

1919
const calculator_example = b.addExecutable(.{
20-
.root_source_file = .{ .path = "examples/calculator.zig" },
20+
.root_source_file = b.path("examples/calculator.zig"),
2121
.name = "calculator",
2222
.optimize = optimize,
2323
.target = target,

0 commit comments

Comments
 (0)