From 0f1e1b883ef30f95871be2d3c62f495c2d89a999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= Date: Mon, 11 Dec 2023 14:15:53 -0300 Subject: [PATCH] zig: use cached include_files --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 858fd5da..3280ba48 100644 --- a/build.zig +++ b/build.zig @@ -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);