diff --git a/build.zig b/build.zig index 4b1ed30..1081a4d 100644 --- a/build.zig +++ b/build.zig @@ -36,6 +36,11 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); + if (target.result.os.tag == .macos) { + exe.linkFramework("CoreFoundation"); + exe.linkFramework("IOKit"); + } + // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`).