| ... | @@ -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); |
| 191 | | 191 | |
| 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(); |