diff --git a/build.zig b/build.zig index 44260dd..dc43fd3 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,7 @@ const std = @import("std"); pub const createStep = @import("compile_commands.zig").createStep; +pub const extractHeaderDirsFromStep = @import("compile_commands.zig").extractHeaderDirsFromStep; pub fn build(b: *std.Build) void { _ = b; diff --git a/compile_commands.zig b/compile_commands.zig index 6fd0ce5..c5f249c 100644 --- a/compile_commands.zig +++ b/compile_commands.zig @@ -30,7 +30,7 @@ pub fn createStep(b: *std.Build, name: []const u8, targets: []*std.Build.Compile /// Find all the header installation directories for a step. /// returns an owned arraylist -fn extractHeaderDirsFromStep(allocator: std.mem.Allocator, step: *std.Build.CompileStep) std.ArrayList([]const u8) { +pub fn extractHeaderDirsFromStep(allocator: std.mem.Allocator, step: *std.Build.CompileStep) std.ArrayList([]const u8) { var dirs = std.ArrayList([]const u8).init(allocator); for (step.installed_headers.items) |header_step| { if (header_step.id == .install_file) {