all: update to latest std.fs.openIterableDir API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-05-28 17:23:14 -07:00
parent 026dcd4c06
commit 98e580b030
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ pub fn run(self: *Builder) !void {
var wasm_file_name: ?[]const u8 = null;
var out_dir_iter = out_dir.iterate();
while (try out_dir_iter.next()) |entry| {
if (entry.kind != .File) continue;
if (entry.kind != .file) continue;
if (std.mem.eql(u8, std.fs.path.extension(entry.name), ".wasm")) {
wasm_file_name = try allocator.dupe(u8, entry.name);
}

View file

@ -1581,7 +1581,7 @@ pub fn Sdk(comptime deps: anytype) type {
defer dir.close();
var dir_it = dir.iterate();
while (try dir_it.next()) |entry| {
if (entry.kind != .File) continue;
if (entry.kind != .file) continue;
var abs_path = try std.fs.path.join(b.allocator, &.{ abs_dir, entry.name });
abs_path = try std.fs.realpathAlloc(b.allocator, abs_path);