From 1f348235855d6fa774aabd5442995fc9c44c1a8b Mon Sep 17 00:00:00 2001 From: nooneknows <157999171+nooneknowspeter@users.noreply.github.com> Date: Fri, 24 Jul 2026 11:48:00 -0400 Subject: [PATCH] feat: install headers in dir for c++ dev - use include dir with lsp config; clangd compile flags --- build.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.zig b/build.zig index 9083f31..45bfb64 100644 --- a/build.zig +++ b/build.zig @@ -187,6 +187,14 @@ pub fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile { inline for (boost_libs) |name| { const boostLib = b.dependency(name, .{}).path("include"); lib.root_module.addIncludePath(boostLib); + lib.installHeadersDirectory( + boostLib, + "./include", + .{ .include_extensions = &[_][]const u8{ + ".h", + ".hpp", + } }, + ); } // zig-pkg bypass (artifact need generate object file) @@ -1100,3 +1108,4 @@ fn checkSystemLibrary(compile: *std.Build.Step.Compile, name: []const u8) bool { return false; } +