| ... | ... | @@ -390,19 +390,20 @@ const SupportedPlatforms = struct { |
| 390 | 390 | std.Target.Abi, |
| 391 | 391 | u32, // Min platform version for which to emit LC_BUILD_VERSION |
| 392 | 392 | u32, // Min supported platform version |
| 393 | | ?[]const u8, // Env var to look for |
| 394 | 393 | }; |
| 395 | 394 | |
| 396 | 395 | // Source: https://github.com/apple-oss-distributions/ld64/blob/59a99ab60399c5e6c49e6945a9e1049c42b71135/src/ld/PlatformSupport.cpp#L52 |
| 396 | // zig fmt: off |
| 397 | 397 | const supported_platforms = [_]SupportedPlatforms{ |
| 398 | | .{ .macos, .none, 0xA0E00, 0xA0800, "MACOSX_DEPLOYMENT_TARGET" }, |
| 399 | | .{ .ios, .none, 0xC0000, 0x70000, "IPHONEOS_DEPLOYMENT_TARGET" }, |
| 400 | | .{ .tvos, .none, 0xC0000, 0x70000, "TVOS_DEPLOYMENT_TARGET" }, |
| 401 | | .{ .watchos, .none, 0x50000, 0x20000, "WATCHOS_DEPLOYMENT_TARGET" }, |
| 402 | | .{ .ios, .simulator, 0xD0000, 0x80000, null }, |
| 403 | | .{ .tvos, .simulator, 0xD0000, 0x80000, null }, |
| 404 | | .{ .watchos, .simulator, 0x60000, 0x20000, null }, |
| 398 | .{ .macos, .none, 0xA0E00, 0xA0800 }, |
| 399 | .{ .ios, .none, 0xC0000, 0x70000 }, |
| 400 | .{ .tvos, .none, 0xC0000, 0x70000 }, |
| 401 | .{ .watchos, .none, 0x50000, 0x20000 }, |
| 402 | .{ .ios, .simulator, 0xD0000, 0x80000 }, |
| 403 | .{ .tvos, .simulator, 0xD0000, 0x80000 }, |
| 404 | .{ .watchos, .simulator, 0x60000, 0x20000 }, |
| 405 | 405 | }; |
| 406 | // zig fmt: on |
| 406 | 407 | |
| 407 | 408 | pub inline fn semanticVersionToAppleVersion(version: std.SemanticVersion) u32 { |
| 408 | 409 | const major = version.major; |