pkg/apple-sdk: set sysroot

This commit is contained in:
Mitchell Hashimoto
2023-10-01 16:39:19 -07:00
parent b9cc763a3a
commit 5d52a94792

View File

@ -34,7 +34,7 @@ pub fn addPaths(b: *std.Build, step: *std.build.CompileStep) !void {
xSdkPath("/zig-cache/xcode_frameworks"),
);
// This may be a bug in Zig.
// https://github.com/ziglang/zig/issues/17358
b.sysroot = xSdkPath("/zig-cache/xcode_frameworks");
step.addSystemFrameworkPath(.{ .path = xSdkPath("/zig-cache/xcode_frameworks/Frameworks") });