authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-15 11:13:20+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-21 16:42:45+01:00
logb7a4756e1dd4d35da8f4c14dde1e84cca16d4833
tree8d6bdf562a03e2d998eabce41d33ab8f4c4a8d0a
parenteb3f16db5e20a7de0695e1a42ff32526faaff9f4
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

langref: disable @cImport tests on NetBSD

https://github.com/Vexu/arocc/issues/960

2 files changed, 2 insertions(+), 0 deletions(-)

doc/langref/cImport_builtin.zig+1
...@@ -4,6 +4,7 @@ const c = @cImport({...@@ -4,6 +4,7 @@ const c = @cImport({
4 @cInclude("stdio.h");4 @cInclude("stdio.h");
5});5});
6pub fn main() void {6pub fn main() void {
7 if (@import("builtin").os.tag == .netbsd) return; // https://github.com/Vexu/arocc/issues/960
7 _ = c.printf("hello\n");8 _ = c.printf("hello\n");
8}9}
910
doc/langref/verbose_cimport_flag.zig+1
...@@ -3,6 +3,7 @@ const c = @cImport({...@@ -3,6 +3,7 @@ const c = @cImport({
3 @cInclude("stdio.h");3 @cInclude("stdio.h");
4});4});
5pub fn main() void {5pub fn main() void {
6 if (@import("builtin").os.tag == .netbsd) return; // https://github.com/Vexu/arocc/issues/960
6 _ = c;7 _ = c;
7}8}
89