zig/lib/std/Build
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
..
Cache std.fs: use BadPathName rather than InvalidWtf8 on Windows 2025-10-29 06:20:50 -07:00
Step std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Watch std.Build.Watch: add macOS implementation based on FSEventStream 2025-08-02 05:13:13 +01:00
abi.zig std.Build: implement unit test timeouts 2025-10-18 09:28:39 +01:00
Cache.zig std.Io: implement dirStatPath 2025-10-29 06:20:49 -07:00
Fuzz.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Module.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
Step.zig std: back out the StackTrace byval changes 2025-10-29 06:20:50 -07:00
Watch.zig Merge pull request #25763 from mrjbq7/cancelled 2025-10-30 04:40:13 +00:00
WebServer.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00