diff options
| author | Linus Groh <mail@linusgroh.de> | 2023-05-21 14:27:28 +0100 |
|---|---|---|
| committer | Linus Groh <mail@linusgroh.de> | 2023-05-24 10:15:02 +0100 |
| commit | 0f6fa3f20b3b28958921bd63a9a9d96468455e9c (patch) | |
| tree | b725c368b43701903b4fe145eb240bfffbdc79e6 /lib/std/Build/Step.zig | |
| parent | 39c2eee285f820282dedba4404cac1009a5ae2d6 (diff) | |
| download | zig-0f6fa3f20b3b28958921bd63a9a9d96468455e9c.tar.gz zig-0f6fa3f20b3b28958921bd63a9a9d96468455e9c.zip | |
std: Move std.debug.{TTY.Config,detectTTYConfig} to std.io.tty
Also get rid of the TTY wrapper struct, which was exlusively used as a
namespace - this is done by the tty.zig root struct now.
detectTTYConfig has been renamed to just detectConfig, which is enough
given the new namespace. Additionally, a doc comment had been added.
Diffstat (limited to 'lib/std/Build/Step.zig')
| -rw-r--r-- | lib/std/Build/Step.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig index 40c88df2b9..a0d7a6a296 100644 --- a/lib/std/Build/Step.zig +++ b/lib/std/Build/Step.zig @@ -237,7 +237,7 @@ pub fn dump(step: *Step) void { const stderr = std.io.getStdErr(); const w = stderr.writer(); - const tty_config = std.debug.detectTTYConfig(stderr); + const tty_config = std.io.tty.detectConfig(stderr); const debug_info = std.debug.getSelfDebugInfo() catch |err| { w.print("Unable to dump stack trace: Unable to open debug info: {s}\n", .{ @errorName(err), |
