We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e45b471 commit 37424fdCopy full SHA for 37424fd
lib/std/build/LibExeObjStep.zig
@@ -486,11 +486,18 @@ pub fn installHeadersDirectory(
486
src_dir_path: []const u8,
487
dest_rel_path: []const u8,
488
) void {
489
- const install_dir = a.builder.addInstallDirectory(.{
+ return a.builder.addInstallDirectoryOptions(.{
490
.source_dir = src_dir_path,
491
.install_dir = .header,
492
.install_subdir = dest_rel_path,
493
});
494
+}
495
+
496
+pub fn installHeadersDirectoryOptions(
497
+ a: *LibExeObjStep,
498
+ options: std.build.InstallDirStep.Options,
499
+) void {
500
+ const install_dir = a.builder.addInstallDirectory(options);
501
a.builder.getInstallStep().dependOn(&install_dir.step);
502
a.installed_headers.append(&install_dir.step) catch unreachable;
503
}
0 commit comments