pkg/macos: only link apple paths on darwin target

This commit is contained in:
Mitchell Hashimoto
2024-01-09 21:58:56 -08:00
parent c0722b3652
commit fde52e9eca

View File

@ -36,12 +36,12 @@ pub fn build(b: *std.Build) !void {
module.linkFramework("CoreGraphics", .{});
module.linkFramework("CoreText", .{});
module.linkFramework("CoreVideo", .{});
}
if (!target.query.isNative()) {
try apple_sdk.addPaths(b, lib);
try apple_sdk.addPaths(b, module);
}
}
b.installArtifact(lib);
{