zig/src
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
..
Air std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
codegen std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Compilation remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
libs std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
link std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Package std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Sema fix: emit vector instead of scalar u1_zero in shl_with_overflow logic 2025-08-12 16:33:58 +02:00
Zcu std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Air.zig Sema: avoid ptr_add/ptr_sub instructions void elem type 2025-09-20 18:33:00 -07:00
Builtin.zig compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
clang_options.zig zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
clang_options_data.zig zig cc: update options data to LLVM 21 2025-08-30 06:36:41 +02:00
codegen.zig Coff: delete 2025-10-02 17:44:52 -04:00
Compilation.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
crash_report.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
DarwinPosixSpawn.zig std.c.darwin: cleanup, expose everything in std.c 2025-08-20 18:21:32 +02:00
dev.zig remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
fmt.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
IncrementalDebugServer.zig compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
InternPool.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
introspect.zig compiler: refactor Zcu.File and path representation 2025-05-18 17:37:02 +01:00
link.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
main.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
mutable_value.zig Sema: Improve comptime arithmetic undef handling 2025-08-12 16:33:57 +02:00
Package.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
print_env.zig progress towards compiler building again 2025-10-29 06:20:49 -07:00
print_targets.zig rework std.Io.Writer.Allocating to support runtime-known alignment 2025-08-30 00:48:50 -07:00
print_value.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
print_zir.zig frontend: replace elem_val_node with elem_ptr_load 2025-09-20 18:33:00 -07:00
print_zoir.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
RangeSet.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
register_manager.zig std.fmt.format: use {t} for tag name rather than {s} 2025-07-07 22:43:52 -07:00
Sema.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
target.zig remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
tracy.zig Update TracyAllocator to new allocator API 2025-07-05 00:24:40 +02:00
Type.zig detect invalid @bitCast with arrays 2025-10-16 19:36:11 +01:00
Value.zig InternPool: use sequential string indices instead of byte offsets 2025-10-05 00:25:21 -04:00
Zcu.zig compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
zig_clang_cc1_main.cpp zig cc: update driver files to LLVM 21 2025-08-30 06:36:40 +02:00
zig_clang_cc1as_main.cpp zig cc: update driver files to LLVM 21 2025-08-30 06:36:40 +02:00
zig_clang_driver.cpp zig cc: update driver files to LLVM 21 2025-08-30 06:36:40 +02:00
zig_llvm-ar.cpp zig cc: update driver files to LLVM 21 2025-08-30 06:36:40 +02:00
zig_llvm.cpp Support generating import libraries from mingw .def files without LLVM 2025-10-03 18:26:05 -07:00
zig_llvm.h Support generating import libraries from mingw .def files without LLVM 2025-10-03 18:26:05 -07:00