feat(zig): update outdated path syntax
Both options are allowed in zig 0.12, but only b.path() in later versions.
This commit is contained in:
parent
f0ec14ebfd
commit
4a8be390f0
1 changed files with 3 additions and 3 deletions
|
|
@ -8,9 +8,9 @@ pub fn build(b: *std.Build) void {
|
|||
});
|
||||
|
||||
lib.linkLibC();
|
||||
lib.addCSourceFile(.{ .file = .{ .path = "lib/src/lib.c" }, .flags = &.{"-std=c11"} });
|
||||
lib.addIncludePath(.{ .path = "lib/include" });
|
||||
lib.addIncludePath(.{ .path = "lib/src" });
|
||||
lib.addCSourceFile(.{ .file = b.path("lib/src/lib.c"), .flags = &.{"-std=c11"} });
|
||||
lib.addIncludePath(b.path("lib/include"));
|
||||
lib.addIncludePath(b.path("lib/src"));
|
||||
|
||||
lib.installHeadersDirectory(b.path("lib/include"), ".", .{});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue