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(
348348 try filenames.append(ctx.arena, try ctx.arena.dupe(u8, entry.path));
349349 },
350350 .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 })));
352352 },
353353 else => continue,
354354 }
test/tests.zig+3-3
......@@ -3336,7 +3336,7 @@ pub fn addCases(
33363336
33373337 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
33413341 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });
33423342 defer dir.close(io);
......@@ -3398,7 +3398,7 @@ pub fn addIncrementalTests(
33983398 }),
33993399 });
34003400
3401 b.dependOnDirectory(b.path("test/incremental"));
3401 b.dependOnDirectoryContents(b.path("test/incremental"));
34023402
34033403 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });
34043404 defer dir.close(io);
......@@ -3414,7 +3414,7 @@ pub fn addIncrementalTests(
34143414 switch (entry.kind) {
34153415 .file => {},
34163416 .directory => {
3417 b.dependOnDirectory(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));
3417 b.dependOnDirectoryContents(b.path(b.pathJoin(&.{ "test", "incremental", entry.path })));
34183418 },
34193419 else => continue,
34203420 }