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 4d4794b commit 33783d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const std = @import("std");

pub fn build(b: *std.Build) void {
_ = b.addModule("any-pointer", .{
.root_source_file = .{ .path = "any-pointer.zig" },
.root_source_file = b.path("any-pointer.zig"),
});

const test_step = b.step("test", "Run library tests");

const all_modes = std.enums.values(std.builtin.OptimizeMode);
for (all_modes) |optimize| {
const main_tests = b.addTest(.{
.root_source_file = .{ .path = "tests.zig" },
.root_source_file = b.path("tests.zig"),
.optimize = optimize,
});

Expand Down

0 comments on commit 33783d9

Please sign in to comment.