From 344d7154653070cdffbee3476857c41fe99c2739 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 4 May 2023 03:43:10 -0400 Subject: [PATCH] hacc: don't io::close os::stdout after dumping --- cmd/hacc/main.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/hacc/main.ha b/cmd/hacc/main.ha index 8d25e1d..33c134f 100644 --- a/cmd/hacc/main.ha +++ b/cmd/hacc/main.ha @@ -273,7 +273,7 @@ export fn main() void = { const out: io::handle = if (ctx.stage > stage::DUMP) { yield &bufio::dynamic(io::mode::RDWR); } else os::stdout; - defer if (ctx.stage != stage::PP) io::close(out)!; + defer if (ctx.stage > stage::DUMP) io::close(out)!; const (base, ext) = path::extension(sources[i]); -- 2.45.2