all: update to latest std.fs.openIterableDir API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
026dcd4c06
commit
98e580b030
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ pub fn run(self: *Builder) !void {
|
||||||
var wasm_file_name: ?[]const u8 = null;
|
var wasm_file_name: ?[]const u8 = null;
|
||||||
var out_dir_iter = out_dir.iterate();
|
var out_dir_iter = out_dir.iterate();
|
||||||
while (try out_dir_iter.next()) |entry| {
|
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")) {
|
if (std.mem.eql(u8, std.fs.path.extension(entry.name), ".wasm")) {
|
||||||
wasm_file_name = try allocator.dupe(u8, entry.name);
|
wasm_file_name = try allocator.dupe(u8, entry.name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1581,7 +1581,7 @@ pub fn Sdk(comptime deps: anytype) type {
|
||||||
defer dir.close();
|
defer dir.close();
|
||||||
var dir_it = dir.iterate();
|
var dir_it = dir.iterate();
|
||||||
while (try dir_it.next()) |entry| {
|
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 });
|
var abs_path = try std.fs.path.join(b.allocator, &.{ abs_dir, entry.name });
|
||||||
abs_path = try std.fs.realpathAlloc(b.allocator, abs_path);
|
abs_path = try std.fs.realpathAlloc(b.allocator, abs_path);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue