| ... | ... | @@ -75,7 +75,13 @@ pub const Os = struct { |
| 75 | 75 | |
| 76 | 76 | pub inline fn isDarwin(tag: Tag) bool { |
| 77 | 77 | return switch (tag) { |
| 78 | | .ios, .macos, .watchos, .tvos, .visionos => true, |
| 78 | .driverkit, |
| 79 | .ios, |
| 80 | .macos, |
| 81 | .tvos, |
| 82 | .visionos, |
| 83 | .watchos, |
| 84 | => true, |
| 79 | 85 | else => false, |
| 80 | 86 | }; |
| 81 | 87 | } |
| ... | ... | @@ -116,7 +122,13 @@ pub const Os = struct { |
| 116 | 122 | pub fn dynamicLibSuffix(tag: Tag) [:0]const u8 { |
| 117 | 123 | return switch (tag) { |
| 118 | 124 | .windows, .uefi => ".dll", |
| 119 | | .ios, .macos, .watchos, .tvos, .visionos => ".dylib", |
| 125 | .driverkit, |
| 126 | .ios, |
| 127 | .macos, |
| 128 | .tvos, |
| 129 | .visionos, |
| 130 | .watchos, |
| 131 | => ".dylib", |
| 120 | 132 | else => ".so", |
| 121 | 133 | }; |
| 122 | 134 | } |
| ... | ... | @@ -163,7 +175,6 @@ pub const Os = struct { |
| 163 | 175 | .hermit, |
| 164 | 176 | .hurd, |
| 165 | 177 | .emscripten, |
| 166 | | .driverkit, |
| 167 | 178 | .shadermodel, |
| 168 | 179 | .uefi, |
| 169 | 180 | .opencl, // TODO: OpenCL versions |
| ... | ... | @@ -175,6 +186,7 @@ pub const Os = struct { |
| 175 | 186 | .other, |
| 176 | 187 | => .none, |
| 177 | 188 | |
| 189 | .driverkit, |
| 178 | 190 | .freebsd, |
| 179 | 191 | .macos, |
| 180 | 192 | .ios, |
| ... | ... | @@ -392,7 +404,6 @@ pub const Os = struct { |
| 392 | 404 | .hermit, |
| 393 | 405 | .hurd, |
| 394 | 406 | .emscripten, |
| 395 | | .driverkit, |
| 396 | 407 | .shadermodel, |
| 397 | 408 | .uefi, |
| 398 | 409 | .opencl, // TODO: OpenCL versions |
| ... | ... | @@ -410,6 +421,12 @@ pub const Os = struct { |
| 410 | 421 | .max = .{ .major = 14, .minor = 0, .patch = 0 }, |
| 411 | 422 | }, |
| 412 | 423 | }, |
| 424 | .driverkit => .{ |
| 425 | .semver = .{ |
| 426 | .min = .{ .major = 19, .minor = 0, .patch = 0 }, |
| 427 | .max = .{ .major = 24, .minor = 0, .patch = 0 }, |
| 428 | }, |
| 429 | }, |
| 413 | 430 | .macos => switch (arch) { |
| 414 | 431 | .aarch64 => VersionRange{ |
| 415 | 432 | .semver = .{ |
| ... | ... | @@ -555,6 +572,7 @@ pub const Os = struct { |
| 555 | 572 | return switch (os.tag) { |
| 556 | 573 | .freebsd, |
| 557 | 574 | .netbsd, |
| 575 | .driverkit, |
| 558 | 576 | .macos, |
| 559 | 577 | .ios, |
| 560 | 578 | .tvos, |
| ... | ... | @@ -589,7 +607,6 @@ pub const Os = struct { |
| 589 | 607 | .hurd, |
| 590 | 608 | .wasi, |
| 591 | 609 | .emscripten, |
| 592 | | .driverkit, |
| 593 | 610 | .shadermodel, |
| 594 | 611 | .uefi, |
| 595 | 612 | .opencl, |
| ... | ... | @@ -1802,6 +1819,7 @@ pub const DynamicLinker = struct { |
| 1802 | 1819 | => none, |
| 1803 | 1820 | }, |
| 1804 | 1821 | |
| 1822 | .driverkit, |
| 1805 | 1823 | .ios, |
| 1806 | 1824 | .tvos, |
| 1807 | 1825 | .watchos, |
| ... | ... | @@ -1846,7 +1864,6 @@ pub const DynamicLinker = struct { |
| 1846 | 1864 | .amdpal, |
| 1847 | 1865 | .hermit, |
| 1848 | 1866 | .hurd, |
| 1849 | | .driverkit, |
| 1850 | 1867 | .shadermodel, |
| 1851 | 1868 | => none, |
| 1852 | 1869 | }; |
| ... | ... | @@ -2261,7 +2278,13 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2261 | 2278 | }, |
| 2262 | 2279 | }, |
| 2263 | 2280 | |
| 2264 | | .macos, .ios, .tvos, .watchos, .visionos => switch (c_type) { |
| 2281 | .driverkit, |
| 2282 | .ios, |
| 2283 | .macos, |
| 2284 | .tvos, |
| 2285 | .visionos, |
| 2286 | .watchos, |
| 2287 | => switch (c_type) { |
| 2265 | 2288 | .char => return 8, |
| 2266 | 2289 | .short, .ushort => return 16, |
| 2267 | 2290 | .int, .uint, .float => return 32, |
| ... | ... | @@ -2334,7 +2357,6 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2334 | 2357 | .hermit, |
| 2335 | 2358 | .hurd, |
| 2336 | 2359 | .opengl, |
| 2337 | | .driverkit, |
| 2338 | 2360 | .shadermodel, |
| 2339 | 2361 | => @panic("TODO specify the C integer and float type sizes for this OS"), |
| 2340 | 2362 | } |