Skip to content

Commit

Permalink
export extractHeaderDirsFromStep
Browse files Browse the repository at this point in the history
  • Loading branch information
the-argus committed Sep 5, 2023
1 parent 55da47d commit d69d38a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion compile_commands.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d69d38a

Please sign in to comment.