Skip to content

Commit

Permalink
update to Zig 2024.1.0-mach (fix dir iter)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Jan 13, 2024
1 parent 7f76d81 commit c181959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ fn scanSources(
excluding_contains: []const []const u8,
) !void {
const abs_dir = try std.fs.path.join(b.allocator, &.{ sdkPath("/"), rel_dir });
var dir = std.fs.openDirAbsolute(abs_dir, .{}) catch |err| {
var dir = std.fs.openDirAbsolute(abs_dir, .{ .iterate = true }) catch |err| {
std.log.err("mach: error: failed to open: {s}", .{abs_dir});
return err;
};
Expand Down

0 comments on commit c181959

Please sign in to comment.