We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ec14e commit 4a8be39Copy full SHA for 4a8be39
build.zig
@@ -8,9 +8,9 @@ pub fn build(b: *std.Build) void {
8
});
9
10
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" });
+ lib.addCSourceFile(.{ .file = b.path("lib/src/lib.c"), .flags = &.{"-std=c11"} });
+ lib.addIncludePath(b.path("lib/include"));
+ lib.addIncludePath(b.path("lib/src"));
14
15
lib.installHeadersDirectory(b.path("lib/include"), ".", .{});
16
0 commit comments