mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
fix InstallArtifact opening empty string
this appears to have been a problem since 43f73af359
This commit is contained in:
parent
4cefd1bd1b
commit
5765736867
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue