Skip to content

Commit

Permalink
zig: use cached include_files
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Dec 11, 2023
1 parent c7b3e18 commit 0f1e1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,10 @@ fn buildTest(b: *std.Build, info: BuildInfo) void {
exe.addCSourceFile(.{ .file = Path.relative(info.path), .flags = cflags });
exe.addCSourceFile(.{ .file = Path.relative("test/unit/test_all.c"), .flags = cflags });
exe.addIncludePath(Path.relative("test/unit"));
for (info.lib.include_dirs.items) |include| {
exe.include_dirs.append(include) catch {};
}
exe.linkLibrary(info.lib);
exe.installLibraryHeaders(info.lib);
exe.linkLibC();
b.installArtifact(exe);

Expand Down

0 comments on commit 0f1e1b8

Please # to comment.