Skip to content

Commit 4a8be39

Browse files
authored
feat(zig): update outdated path syntax
Both options are allowed in zig 0.12, but only b.path() in later versions.
1 parent f0ec14e commit 4a8be39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pub fn build(b: *std.Build) void {
88
});
99

1010
lib.linkLibC();
11-
lib.addCSourceFile(.{ .file = .{ .path = "lib/src/lib.c" }, .flags = &.{"-std=c11"} });
12-
lib.addIncludePath(.{ .path = "lib/include" });
13-
lib.addIncludePath(.{ .path = "lib/src" });
11+
lib.addCSourceFile(.{ .file = b.path("lib/src/lib.c"), .flags = &.{"-std=c11"} });
12+
lib.addIncludePath(b.path("lib/include"));
13+
lib.addIncludePath(b.path("lib/src"));
1414

1515
lib.installHeadersDirectory(b.path("lib/include"), ".", .{});
1616

0 commit comments

Comments
 (0)