build: update build.zig

This commit is contained in:
utox39
2026-02-11 13:37:49 +01:00
parent 8bd839a567
commit c13015db27

View File

@@ -25,13 +25,11 @@ pub fn build(b: *std.Build) void {
}); });
if (target.result.os.tag == .macos) { if (target.result.os.tag == .macos) {
exe.linkFramework("CoreFoundation"); exe.root_module.linkFramework("CoreFoundation", .{ .needed = true });
exe.linkFramework("IOKit"); exe.root_module.linkFramework("IOKit", .{ .needed = true });
} } else if (target.result.os.tag == .linux) {
exe.root_module.link_libc = true;
if (target.result.os.tag == .linux) { exe.root_module.linkSystemLibrary("pci", .{ .needed = true });
exe.linkLibC();
exe.linkSystemLibrary("pci");
} }
// This declares intent for the executable to be installed into the // This declares intent for the executable to be installed into the