mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
tools: fix compilation errors
This commit is contained in:
@@ -181,8 +181,8 @@ pub fn main() !void {
|
||||
|
||||
const args = try std.process.argsAlloc(gpa);
|
||||
if (args.len < 2 or mem.eql(u8, args[1], "--help")) {
|
||||
const w, _ = std.debug.lockStderrWriter(&.{});
|
||||
defer std.debug.unlockStderrWriter();
|
||||
const stderr = std.debug.lockStderr(&.{});
|
||||
const w = &stderr.file_writer.interface;
|
||||
usage(w, args[0]) catch std.process.exit(2);
|
||||
std.process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user