Skip to content

Commit ea68588

Browse files
committed
chore: use proper b.path instead of manual struct
1 parent 661ab5d commit ea68588

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ pub fn build(b: *std.Build) void {
1717
const lib = b.addStaticLibrary(.{
1818
.name = "zig-jni",
1919
.version = .{ .major = 0, .minor = 0, .patch = 1 },
20-
.root_source_file = .{ .src_path = .{
21-
.owner = b,
22-
.sub_path = "src/main/zig/lib.zig",
23-
} },
20+
.root_source_file = b.path("src/main/zig/lib.zig"),
2421
.target = target,
2522
.optimize = optimize,
2623
});

0 commit comments

Comments
 (0)