tools: fix compilation errors

This commit is contained in:
Andrew Kelley
2025-12-22 22:30:49 -08:00
parent 7a09d579b5
commit c05e2720a1
8 changed files with 27 additions and 25 deletions
+2 -2
View File
@@ -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);
}