From c13015db27a3726969a36f6ddec80a602977a75f Mon Sep 17 00:00:00 2001 From: utox39 Date: Wed, 11 Feb 2026 13:37:49 +0100 Subject: [PATCH] build: update build.zig --- build.zig | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.zig b/build.zig index 8093504..65797cb 100644 --- a/build.zig +++ b/build.zig @@ -25,13 +25,11 @@ pub fn build(b: *std.Build) void { }); if (target.result.os.tag == .macos) { - exe.linkFramework("CoreFoundation"); - exe.linkFramework("IOKit"); - } - - if (target.result.os.tag == .linux) { - exe.linkLibC(); - exe.linkSystemLibrary("pci"); + exe.root_module.linkFramework("CoreFoundation", .{ .needed = true }); + exe.root_module.linkFramework("IOKit", .{ .needed = true }); + } else if (target.result.os.tag == .linux) { + exe.root_module.link_libc = true; + exe.root_module.linkSystemLibrary("pci", .{ .needed = true }); } // This declares intent for the executable to be installed into the