aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-08 17:45:17 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commit4be8be1d2bd6959efae7df95e3f5713adf953a42 (patch)
treeee9fb0f267e80ba20d4ae26e1ee61c5c348a08da /lib/compiler
parent4218344dd3178f2fd3d9d00e9ff6895ee344df6d (diff)
downloadzig-4be8be1d2bd6959efae7df95e3f5713adf953a42.tar.gz
zig-4be8be1d2bd6959efae7df95e3f5713adf953a42.zip
update all rename() to rename(io)
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/build_runner.zig8
-rw-r--r--lib/compiler/objcopy.zig2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig
index 9150d84470..677158645d 100644
--- a/lib/compiler/build_runner.zig
+++ b/lib/compiler/build_runner.zig
@@ -478,14 +478,14 @@ pub fn main() !void {
validateSystemLibraryOptions(builder);
if (help_menu) {
- var w = initStdoutWriter();
+ var w = initStdoutWriter(io);
printUsage(builder, w) catch return stdout_writer_allocation.err.?;
w.flush() catch return stdout_writer_allocation.err.?;
return;
}
if (steps_menu) {
- var w = initStdoutWriter();
+ var w = initStdoutWriter(io);
printSteps(builder, w) catch return stdout_writer_allocation.err.?;
w.flush() catch return stdout_writer_allocation.err.?;
return;
@@ -1847,7 +1847,7 @@ fn createModuleDependenciesForStep(step: *Step) Allocator.Error!void {
var stdio_buffer_allocation: [256]u8 = undefined;
var stdout_writer_allocation: Io.File.Writer = undefined;
-fn initStdoutWriter() *Writer {
- stdout_writer_allocation = Io.File.stdout().writerStreaming(&stdio_buffer_allocation);
+fn initStdoutWriter(io: Io) *Writer {
+ stdout_writer_allocation = Io.File.stdout().writerStreaming(io, &stdio_buffer_allocation);
return &stdout_writer_allocation.interface;
}
diff --git a/lib/compiler/objcopy.zig b/lib/compiler/objcopy.zig
index 6473a10dd0..d9b9b33186 100644
--- a/lib/compiler/objcopy.zig
+++ b/lib/compiler/objcopy.zig
@@ -183,7 +183,7 @@ fn cmdObjCopy(gpa: Allocator, arena: Allocator, args: []const []const u8) !void
var output_file = try Io.Dir.cwd().createFile(io, output, .{ .mode = mode });
defer output_file.close(io);
- var out = output_file.writer(&output_buffer);
+ var out = output_file.writer(io, &output_buffer);
switch (out_fmt) {
.hex, .raw => {