From 7d3ebdd2c3f73d4531ec366c90bfc7e0c4a895c4 Mon Sep 17 00:00:00 2001 From: Stefan Schlosser Date: Tue, 10 Feb 2026 09:15:11 +0100 Subject: Fix checker diagnostics on BSD The output of the check command must be redirected to stdout on BSD systems too, otherwise the diagnostics cannot be processed. To reduce repetition, the separate conditional checks for ODIN_OS are combined into one bit_set test. --- src/server/check.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/check.odin b/src/server/check.odin index fed3a3f..e8400d3 100644 --- a/src/server/check.odin +++ b/src/server/check.odin @@ -148,7 +148,7 @@ check :: proc(paths: []string, uri: common.Uri, config: ^common.Config) { entry_point_opt, config.checker_args, "-json-errors", - ODIN_OS == .Linux || ODIN_OS == .Darwin ? "2>&1" : "", + ODIN_OS in runtime.Odin_OS_Types{.Linux, .Darwin, .FreeBSD, .OpenBSD, .NetBSD} ? "2>&1" : "", ), &data, ); !ok { -- cgit v1.2.3