aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schlosser <bsdcode@disroot.org>2026-02-10 09:15:11 +0100
committerStefan Schlosser <bsdcode@disroot.org>2026-02-10 09:34:33 +0100
commit7d3ebdd2c3f73d4531ec366c90bfc7e0c4a895c4 (patch)
treed4fecf3806cd36199f6cfa7a47d158da4ef5d145 /src
parent3e8434dd66c7cbba28cfa3dd5824b26c2ce70b29 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/server/check.odin2
1 files changed, 1 insertions, 1 deletions
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 {