Skip to content

Commit

Permalink
use b.path instead of deprecated LazyPath.path
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Jul 17, 2024
1 parent 14cd7c8 commit a16010b
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 @@ -6,21 +6,21 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

_ = b.addModule("zig-deque", .{
.root_source_file = .{ .path = "src/deque.zig" },
.root_source_file = b.path("src/deque.zig"),
.imports = &.{},
});

const lib = b.addStaticLibrary(.{
.name = "zig-deque",
.root_source_file = .{ .path = "src/deque.zig" },
.root_source_file = b.path("src/deque.zig"),
.target = target,
.optimize = optimize,
});

b.installArtifact(lib);

const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/deque.zig" },
.root_source_file = b.path("src/deque.zig"),
.target = target,
.optimize = optimize,
});
Expand Down

0 comments on commit a16010b

Please sign in to comment.