aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-03-06 16:22:50 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-03-07 15:21:40 -0500
commit5765736867f17df63740017a2a842427f046743f (patch)
treeae33a332ab214143f82eca8d6db42c717e91490a /lib/std/Build
parent4cefd1bd1bac7059f7e00162a579f659e5f59412 (diff)
downloadzig-5765736867f17df63740017a2a842427f046743f.tar.gz
zig-5765736867f17df63740017a2a842427f046743f.zip
fix InstallArtifact opening empty string
this appears to have been a problem since 43f73af3595c3174b8e67e9f2792c3774f2192e9
Diffstat (limited to 'lib/std/Build')
-rw-r--r--lib/std/Build/Step/InstallArtifact.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/InstallArtifact.zig b/lib/std/Build/Step/InstallArtifact.zig
index 3d404eb8ca..acf392f49f 100644
--- a/lib/std/Build/Step/InstallArtifact.zig
+++ b/lib/std/Build/Step/InstallArtifact.zig
@@ -189,9 +189,9 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
const src_dir_path = dir.source.getPath3(b, step);
const full_h_prefix = b.getInstallPath(h_dir, dir.dest_rel_path);
- var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.sub_path, .{ .iterate = true }) catch |err| {
- return step.fail("unable to open source directory '{s}': {s}", .{
- src_dir_path.sub_path, @errorName(err),
+ var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.subPathOrDot(), .{ .iterate = true }) catch |err| {
+ return step.fail("unable to open source directory '{}': {s}", .{
+ src_dir_path, @errorName(err),
});
};
defer src_dir.close();