From 6adf8effcb339947c93b681a1a6b56f16c3f208b Mon Sep 17 00:00:00 2001 From: utox39 Date: Mon, 3 Mar 2025 01:09:03 +0100 Subject: [PATCH] build: link CoreFoundation and IOKit frameworks on macOS --- build.zig | 5 +++++ 1 file changed, 5 insertions(+) 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`).