fix code_frameworks relative -> absolute path

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-07-08 16:54:01 -07:00
parent 1b516bae92
commit 8e78e01759

View file

@ -99,9 +99,9 @@ const xcode_frameworks = struct {
// branch: mach
xEnsureGitRepoCloned(b.allocator, "https://github.com/hexops/xcode-frameworks", "723aa55e9752c8c6c25d3413722b5fe13d72ac4f", xSdkPath("/zig-cache/xcode_frameworks")) catch |err| @panic(@errorName(err));
step.addFrameworkPath("zig-cache/xcode_frameworks/Frameworks");
step.addSystemIncludePath("zig-cache/xcode_frameworks/include");
step.addLibraryPath("zig-cache/xcode_frameworks/lib");
step.addFrameworkPath(xSdkPath("/zig-cache/xcode_frameworks/Frameworks"));
step.addSystemIncludePath(xSdkPath("/zig-cache/xcode_frameworks/include"));
step.addLibraryPath(xSdkPath("/zig-cache/xcode_frameworks/lib"));
}
fn xEnsureGitRepoCloned(allocator: std.mem.Allocator, clone_url: []const u8, revision: []const u8, dir: []const u8) !void {