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 ad7122d commit 74260c9
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 @@ -16,12 +16,12 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

_ = b.addModule("zigline", .{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
});

const exe = b.addExecutable(.{
.name = "zigline-test",
.root_source_file = .{ .path = "src/example.zig" },
.root_source_file = b.path("src/example.zig"),
.target = target,
.optimize = optimize,
});
Expand Down Expand Up @@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
Expand Down

0 comments on commit 74260c9

Please sign in to comment.