Merge remote-tracking branch 'upstream/main' into grapheme-width-changes

This commit is contained in:
Jacob Sandlund
2026-01-27 09:44:55 -05:00
281 changed files with 52773 additions and 20381 deletions

View File

@@ -50,7 +50,10 @@ pub fn main() !void {
var buf: [4096]u8 = undefined;
var stdout = std.fs.File.stdout().writer(&buf);
try t.writeZig(&stdout.interface);
try stdout.end();
// Use flush instead of end because stdout is a pipe when captured by
// the build system, and pipes cannot be truncated (Windows returns
// INVALID_PARAMETER, Linux returns EINVAL).
try stdout.interface.flush();
// Uncomment when manually debugging to see our table sizes.
// std.log.warn("stage1={} stage2={} stage3={}", .{

View File

@@ -34,7 +34,10 @@ pub fn main() !void {
var buf: [4096]u8 = undefined;
var stdout = std.fs.File.stdout().writer(&buf);
try t.writeZig(&stdout.interface);
try stdout.end();
// Use flush instead of end because stdout is a pipe when captured by
// the build system, and pipes cannot be truncated (Windows returns
// INVALID_PARAMETER, Linux returns EINVAL).
try stdout.interface.flush();
// Uncomment when manually debugging to see our table sizes.
// std.log.warn("stage1={} stage2={} stage3={}", .{