| ... | @@ -486,11 +486,18 @@ pub fn installHeadersDirectory( | ... | @@ -486,11 +486,18 @@ pub fn installHeadersDirectory( |
| 486 | src_dir_path: []const u8, | 486 | src_dir_path: []const u8, |
| 487 | dest_rel_path: []const u8, | 487 | dest_rel_path: []const u8, |
| 488 | ) void { | 488 | ) void { |
| 489 | const install_dir = a.builder.addInstallDirectory(.{ | 489 | return a.builder.addInstallDirectoryOptions(.{ |
| 490 | .source_dir = src_dir_path, | 490 | .source_dir = src_dir_path, |
| 491 | .install_dir = .header, | 491 | .install_dir = .header, |
| 492 | .install_subdir = dest_rel_path, | 492 | .install_subdir = dest_rel_path, |
| 493 | }); | 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); |
| 494 | a.builder.getInstallStep().dependOn(&install_dir.step); | 501 | a.builder.getInstallStep().dependOn(&install_dir.step); |
| 495 | a.installed_headers.append(&install_dir.step) catch unreachable; | 502 | a.installed_headers.append(&install_dir.step) catch unreachable; |
| 496 | } | 503 | } |