authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-03 20:37:25-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-16 13:12:47-07:00
log7eca05812af81a4ed64fcf86288923679b146c03
tree8006f3fb56503c13ba4ad3fcb5e786f74217a270
parent2a82193af49b514c2c784746abd22fdec7c31500

build.zig: update API usage


2 files changed, 4 insertions(+), 4 deletions(-)

test/src/Cases.zig+1-1
...@@ -348,7 +348,7 @@ fn addFromDirInner(...@@ -348,7 +348,7 @@ fn addFromDirInner(
348 try filenames.append(ctx.arena, try ctx.arena.dupe(u8, entry.path));348 try filenames.append(ctx.arena, try ctx.arena.dupe(u8, entry.path));
349 },349 },
350 .directory => {350 .directory => {
351 b.dependOnDirectory(b.path(b.pathJoin(&.{ path_from_root, entry.path })));351 b.dependOnDirectoryContents(b.path(b.pathJoin(&.{ path_from_root, entry.path })));
352 },352 },
353 else => continue,353 else => continue,
354 }354 }
test/tests.zig+3-3
...@@ -3339,7 +3339,7 @@ pub fn addCases(...@@ -3339,7 +3339,7 @@ pub fn addCases(
33393339
3340 var cases = @import("src/Cases.zig").init(gpa, arena, io);3340 var cases = @import("src/Cases.zig").init(gpa, arena, io);
33413341
3342 b.dependOnDirectory(b.path("test/cases"));3342 b.dependOnDirectoryContents(b.path("test/cases"));
33433343
3344 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });3344 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });
3345 defer dir.close(io);3345 defer dir.close(io);
...@@ -3401,7 +3401,7 @@ pub fn addIncrementalTests(...@@ -3401,7 +3401,7 @@ pub fn addIncrementalTests(
3401 }),3401 }),
3402 });3402 });
34033403
3404 b.dependOnDirectory(b.path("test/incremental"));3404 b.dependOnDirectoryContents(b.path("test/incremental"));
34053405
3406 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });3406 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });
3407 defer dir.close(io);3407 defer dir.close(io);
...@@ -3417,7 +3417,7 @@ pub fn addIncrementalTests(...@@ -3417,7 +3417,7 @@ pub fn addIncrementalTests(
3417 switch (entry.kind) {3417 switch (entry.kind) {
3418 .file => {},3418 .file => {},
3419 .directory => {3419 .directory => {
3420 b.dependOnDirectory(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));3420 b.dependOnDirectoryContents(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));
3421 },3421 },
3422 else => continue,3422 else => continue,
3423 }3423 }