diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-10 20:22:30 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-10 20:22:30 -0400 |
| commit | 2bff0dda795cd84e4da59652736b7cfa7e1c964c (patch) | |
| tree | 4b3bc5f10fefd1c3e4fedccc872ed99d9d87a6e7 /lib/std/special | |
| parent | 9abee660dce3b43b9ac3b8260fbf269532d6c7f5 (diff) | |
| download | zig-2bff0dda795cd84e4da59652736b7cfa7e1c964c.tar.gz zig-2bff0dda795cd84e4da59652736b7cfa7e1c964c.zip | |
fix regressions found by test suite
Diffstat (limited to 'lib/std/special')
| -rw-r--r-- | lib/std/special/build_runner.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/special/build_runner.zig b/lib/std/special/build_runner.zig index baf21570ec..974247e2a1 100644 --- a/lib/std/special/build_runner.zig +++ b/lib/std/special/build_runner.zig @@ -42,8 +42,8 @@ pub fn main() !void { var targets = ArrayList([]const u8).init(allocator); - const stderr_stream = &io.getStdErr().outStream().stream; - const stdout_stream = &io.getStdOut().outStream().stream; + const stderr_stream = io.getStdErr().outStream(); + const stdout_stream = io.getStdOut().outStream(); while (nextArg(args, &arg_idx)) |arg| { if (mem.startsWith(u8, arg, "-D")) { @@ -159,7 +159,7 @@ fn usage(builder: *Builder, already_ran_build: bool, out_stream: var) !void { try out_stream.print(" {s:22} {}\n", .{ name, top_level_step.description }); } - try out_stream.write( + try out_stream.writeAll( \\ \\General Options: \\ --help Print this help and exit @@ -184,7 +184,7 @@ fn usage(builder: *Builder, already_ran_build: bool, out_stream: var) !void { } } - try out_stream.write( + try out_stream.writeAll( \\ \\Advanced Options: \\ --build-file [file] Override path to build.zig |
