zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b7a4756e1dd4d35da8f4c14dde1e84cca16d4833 (tree)
parent eb3f16db5e20a7de0695e1a42ff32526faaff9f4
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 15 Jan 2026 11:13:20 +0100

langref: disable @cImport tests on NetBSD

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

Diffstat:
Mdoc/langref/cImport_builtin.zig | 1+
Mdoc/langref/verbose_cimport_flag.zig | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

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