Lightpanda: the headless browser designed for AI and automation
build: honor macOS SDK root for frameworks
Scott Taylor8072fc082703
diff --git a/build.zig b/build.zigindex 4395fbbb8..e98a30dc9 100644--- a/build.zig+++ b/build.zig@@ -515,7 +515,13 @@ fn linkCurl(b: *Build, mod: *Build.Module, is_tsan: bool, section: bool) void {if (target.result.os.tag == .macos) {// needed for proxying on mac- mod.addSystemFrameworkPath(.{ .cwd_relative = "/System/Library/Frameworks" });+ const framework_path = if (b.sysroot) |sysroot|+ b.pathJoin(&.{ sysroot, "System/Library/Frameworks" })+ else if (b.graph.environ_map.get("SDKROOT")) |sdk_root|+ b.pathJoin(&.{ sdk_root, "System/Library/Frameworks" })+ else+ "/System/Library/Frameworks";+ mod.addSystemFrameworkPath(.{ .cwd_relative = framework_path });mod.linkFramework("CoreFoundation", .{});mod.linkFramework("SystemConfiguration", .{});}