diff options
| author | Ensar Sarajčić <dev@ensarsarajcic.com> | 2025-11-01 10:34:18 +0100 |
|---|---|---|
| committer | Ensar Sarajčić <dev@ensarsarajcic.com> | 2025-11-01 10:34:18 +0100 |
| commit | 26fc4fdaaa4501db81e22a47b111f2c289c7e13f (patch) | |
| tree | 86168d0e07293dfda8ace5810e9f84094d37b041 /build.zig | |
| parent | 7ad02b084fa129e4f920e8b66072ba55524740eb (diff) | |
Update for new zig IO
`test/tests.zig` fails after https://github.com/ziglang/zig/pull/25592 was
merged in. This just ensures that Io is passed, it might not be the
ideal solution.
`build.zig` was also failing due to new color parameter.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -570,12 +570,12 @@ const ZiglingStep = struct { // Render compile errors at the bottom of the terminal. // TODO: use the same ttyconf from the builder. - const ttyconf: std.Io.tty.Config = if (use_color_escapes) - .escape_codes + const color: std.zig.Color = if (use_color_escapes) + .on else - .no_color; + .off; if (self.step.result_error_bundle.errorMessageCount() > 0) { - self.step.result_error_bundle.renderToStdErr(.{ .ttyconf = ttyconf }); + self.step.result_error_bundle.renderToStdErr(.{}, color); } } }; |
