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-04 17:42:22-07:00
log0cc885716800a35779cce7ba762021e112be3296
tree823c803332182165f334402f8da687d83bc4324e
parent44007a5cfd05fc8415b4b0e1a1a4629f2fd191c1

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
...@@ -3336,7 +3336,7 @@ pub fn addCases(...@@ -3336,7 +3336,7 @@ pub fn addCases(
33363336
3337 var cases = @import("src/Cases.zig").init(gpa, arena, io);3337 var cases = @import("src/Cases.zig").init(gpa, arena, io);
33383338
3339 b.dependOnDirectory(b.path("test/cases"));3339 b.dependOnDirectoryContents(b.path("test/cases"));
33403340
3341 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });3341 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });
3342 defer dir.close(io);3342 defer dir.close(io);
...@@ -3398,7 +3398,7 @@ pub fn addIncrementalTests(...@@ -3398,7 +3398,7 @@ pub fn addIncrementalTests(
3398 }),3398 }),
3399 });3399 });
34003400
3401 b.dependOnDirectory(b.path("test/incremental"));3401 b.dependOnDirectoryContents(b.path("test/incremental"));
34023402
3403 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });3403 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });
3404 defer dir.close(io);3404 defer dir.close(io);
...@@ -3414,7 +3414,7 @@ pub fn addIncrementalTests(...@@ -3414,7 +3414,7 @@ pub fn addIncrementalTests(
3414 switch (entry.kind) {3414 switch (entry.kind) {
3415 .file => {},3415 .file => {},
3416 .directory => {3416 .directory => {
3417 b.dependOnDirectory(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));3417 b.dependOnDirectoryContents(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));
3418 },3418 },
3419 else => continue,3419 else => continue,
3420 }3420 }