aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-08 13:46:29 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commit264d714321d3e5f1f189af393e1fb24d101a7e91 (patch)
treecb637a9c8c8565790db5b8cbcd1e960f88523da1 /lib/std/Build.zig
parentf53248a40936ebc9aaf75ddbd16e67ebec05ab84 (diff)
downloadzig-264d714321d3e5f1f189af393e1fb24d101a7e91.tar.gz
zig-264d714321d3e5f1f189af393e1fb24d101a7e91.zip
update all openDir() sites to accept io instance
Diffstat (limited to 'lib/std/Build.zig')
-rw-r--r--lib/std/Build.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
index cc2f70fd2f..3d0e8b8dbc 100644
--- a/lib/std/Build.zig
+++ b/lib/std/Build.zig
@@ -2184,6 +2184,7 @@ fn dependencyInner(
pkg_deps: AvailableDeps,
args: anytype,
) *Dependency {
+ const io = b.graph.io;
const user_input_options = userInputOptionsFromArgs(b.allocator, args);
if (b.graph.dependency_cache.getContext(.{
.build_root_string = build_root_string,
@@ -2193,7 +2194,7 @@ fn dependencyInner(
const build_root: std.Build.Cache.Directory = .{
.path = build_root_string,
- .handle = Io.Dir.cwd().openDir(build_root_string, .{}) catch |err| {
+ .handle = Io.Dir.cwd().openDir(io, build_root_string, .{}) catch |err| {
std.debug.print("unable to open '{s}': {s}\n", .{
build_root_string, @errorName(err),
});