diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-12 17:18:29 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | e68ae8d7a1e78a25392e271d7ca894e0f09aa218 (patch) | |
| tree | b22e9e6b67cc782635e614e0a010179f5c3c4d7d /src | |
| parent | 54e4a3456ce2d5a497a166b94737fe5407052921 (diff) | |
| download | zig-e68ae8d7a1e78a25392e271d7ca894e0f09aa218.tar.gz zig-e68ae8d7a1e78a25392e271d7ca894e0f09aa218.zip | |
update uses of std.debug.lockStdErr
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.zig b/src/main.zig index c1f5e3c026..160b9919eb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4429,12 +4429,12 @@ fn runOrTest( // the error message and invocation below. if (process.can_execv and arg_mode == .run) { // execv releases the locks; no need to destroy the Compilation here. - std.debug.lockStdErr(); + _ = std.debug.lockStderrWriter(&.{}); const err = process.execve(gpa, argv.items, &env_map); - std.debug.unlockStdErr(); + std.debug.unlockStderrWriter(); try warnAboutForeignBinaries(io, arena, arg_mode, target, link_libc); const cmd = try std.mem.join(arena, " ", argv.items); - fatal("the following command failed to execve with '{s}':\n{s}", .{ @errorName(err), cmd }); + fatal("the following command failed to execve with '{t}':\n{s}", .{ err, cmd }); } else if (process.can_spawn) { var child = std.process.Child.init(argv.items, gpa); child.env_map = &env_map; @@ -4448,8 +4448,8 @@ fn runOrTest( comp_destroyed.* = true; const term_result = t: { - std.debug.lockStdErr(); - defer std.debug.unlockStdErr(); + _ = std.debug.lockStderrWriter(); + defer std.debug.unlockStderrWriter(); break :t child.spawnAndWait(io); }; const term = term_result catch |err| { |
