aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Run.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-06 17:52:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commit8328de24f13e21e325207b19288a143854df50df (patch)
treeef7c9c46f969e31258a4c052c85f5a9ecfc34b80 /lib/std/Build/Step/Run.zig
parentdd1d15b72aa3bae4b38e2337609758ffb7a7b55a (diff)
downloadzig-8328de24f13e21e325207b19288a143854df50df.tar.gz
zig-8328de24f13e21e325207b19288a143854df50df.zip
update all occurrences of openFile to receive an io instance
Diffstat (limited to 'lib/std/Build/Step/Run.zig')
-rw-r--r--lib/std/Build/Step/Run.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig
index 1df6f42a35..7c54c8048e 100644
--- a/lib/std/Build/Step/Run.zig
+++ b/lib/std/Build/Step/Run.zig
@@ -846,7 +846,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
errdefer result.deinit();
result.writer.writeAll(file_plp.prefix) catch return error.OutOfMemory;
- const file = file_path.root_dir.handle.openFile(file_path.subPathOrDot(), .{}) catch |err| {
+ const file = file_path.root_dir.handle.openFile(io, file_path.subPathOrDot(), .{}) catch |err| {
return step.fail(
"unable to open input file '{f}': {t}",
.{ file_path, err },
@@ -1111,7 +1111,7 @@ pub fn rerunInFuzzMode(
errdefer result.deinit();
result.writer.writeAll(file_plp.prefix) catch return error.OutOfMemory;
- const file = try file_path.root_dir.handle.openFile(file_path.subPathOrDot(), .{});
+ const file = try file_path.root_dir.handle.openFile(io, file_path.subPathOrDot(), .{});
defer file.close(io);
var buf: [1024]u8 = undefined;
@@ -2185,7 +2185,7 @@ fn evalGeneric(run: *Run, child: *std.process.Child) !EvalGenericResult {
},
.lazy_path => |lazy_path| {
const path = lazy_path.getPath3(b, &run.step);
- const file = path.root_dir.handle.openFile(path.subPathOrDot(), .{}) catch |err| {
+ const file = path.root_dir.handle.openFile(io, path.subPathOrDot(), .{}) catch |err| {
return run.step.fail("unable to open stdin file: {s}", .{@errorName(err)});
};
defer file.close(io);