core: add macos system include path

This commit is contained in:
Jeffrey C. Ollie
2026-03-19 00:06:59 -05:00
parent 89ae0ea6ef
commit 64de418f38

View File

@@ -159,6 +159,12 @@ pub fn add(
.target = target,
.optimize = optimize,
});
const libc = try std.zig.LibCInstallation.findNative(.{
.allocator = b.allocator,
.target = target,
.verbose = false,
});
c.addSystemIncludePath(.{ .cwd_relative = libc.sys_include_dir.? });
step.root_module.addImport("pty-c", c.createModule());
},
else => {},