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 358a028 commit 35a3a0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

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

const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.optimize = optimize,
});

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

const calculator_example = b.addExecutable(.{
.root_source_file = .{ .path = "examples/calculator.zig" },
.root_source_file = b.path("examples/calculator.zig"),
.name = "calculator",
.optimize = optimize,
.target = target,
Expand Down

0 comments on commit 35a3a0b

Please sign in to comment.