authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-29 11:37:31-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-29 11:37:31-07:00
logbfc1484c0fe3adc3b45791f6ae18a362980c991e
treea99fd08cc6a4ec742699e4617e6469b29a58dd71
parent952d915e1baaecc79c875e9efa0917c648fdd055

zig build: add newline to --print-configuration-path output

followup from fee88b30d2ea1d9b8caa17c56869d598951e0c80

1 files changed, 5 insertions(+), 2 deletions(-)

src/main.zig+5-2
...@@ -5749,8 +5749,11 @@ fn cmdBuild(...@@ -5749,8 +5749,11 @@ fn cmdBuild(
5749 defer if (configuration_lock) |*l| l.release(io);5749 defer if (configuration_lock) |*l| l.release(io);
57505750
5751 if (print_configuration_path) {5751 if (print_configuration_path) {
5752 var stdout_writer = Io.File.stdout().writerStreaming(io, &.{});5752 var stdout_writer = Io.File.stdout().writerStreaming(io, &stdout_buffer);
5753 configuration_path.format(&stdout_writer.interface) catch fatal("failed printing cache file path: {t}", .{stdout_writer.err.?});5753 stdout_writer.interface.print("{f}\n", .{configuration_path}) catch
5754 fatal("failed printing cache file path: {t}", .{stdout_writer.err.?});
5755 stdout_writer.flush() catch |err|
5756 fatal("failed printing cache file path: {t}", .{err});
5754 return cleanExit(io);5757 return cleanExit(io);
5755 }5758 }
5756 const make_runner = make_runner_task.await(io) catch |err| fatal("failed compiling maker: {t}", .{err});5759 const make_runner = make_runner_task.await(io) catch |err| fatal("failed compiling maker: {t}", .{err});