zig/lib/compiler
Matthew Lugg 74931fe25c
std.debug.lockStderrWriter: also return ttyconf
`std.Io.tty.Config.detect` may be an expensive check (e.g. involving
syscalls), and doing it every time we need to print isn't really
necessary; under normal usage, we can compute the value once and cache
it for the whole program's execution. Since anyone outputting to stderr
may reasonably want this information (in fact they are very likely to),
it makes sense to cache it and return it from `lockStderrWriter`. Call
sites who do not need it will experience no significant overhead, and
can just ignore the TTY config with a `const w, _` destructure.
2025-10-30 09:31:28 +00:00
..
aro Merge pull request #25592 from ziglang/init-std.Io 2025-10-29 13:51:37 -07:00
reduce zig reduce: adapt to new Writer API 2025-08-21 11:50:03 -07:00
resinator std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
translate-c std.fs: use BadPathName rather than InvalidWtf8 on Windows 2025-10-29 06:20:50 -07:00
build_runner.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
libc.zig std: fix compilation errors on macos 2025-10-29 06:20:50 -07:00
objcopy.zig objcopy: update for std.Io API 2025-10-29 06:20:51 -07:00
reduce.zig Remove usages of deprecatedWriter 2025-09-18 22:39:33 -07:00
std-docs.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
test_runner.zig std: back out the StackTrace byval changes 2025-10-29 06:20:50 -07:00
util.zig - aroDiagnosticsToErrorBundle: fixup not clearing notes after flushing the current error 2025-10-09 13:34:25 -04:00