authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-06 16:22:50-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-07 13:34:13-08:00
log8e91862571384c41114a5c18e0cfccc6e1161f05
tree891c40253227ab372a81d45389b1b3b69844d407
parent61a95ab6629f9eb6e9aeff4f409c68539e117f18

fix InstallArtifact opening empty string

this appears to have been a problem since 43f73af3595c3174b8e67e9f2792c3774f2192e9

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Build/Step/InstallArtifact.zig+3-3
...@@ -189,9 +189,9 @@ fn make(step: *Step, options: Step.MakeOptions) !void {...@@ -189,9 +189,9 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
189 const src_dir_path = dir.source.getPath3(b, step);189 const src_dir_path = dir.source.getPath3(b, step);
190 const full_h_prefix = b.getInstallPath(h_dir, dir.dest_rel_path);190 const full_h_prefix = b.getInstallPath(h_dir, dir.dest_rel_path);
191191
192 var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.sub_path, .{ .iterate = true }) catch |err| {192 var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.subPathOrDot(), .{ .iterate = true }) catch |err| {
193 return step.fail("unable to open source directory '{s}': {s}", .{193 return step.fail("unable to open source directory '{}': {s}", .{
194 src_dir_path.sub_path, @errorName(err),194 src_dir_path, @errorName(err),
195 });195 });
196 };196 };
197 defer src_dir.close();197 defer src_dir.close();