diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-26 23:34:14 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-29 09:25:06 +0100 |
| commit | 7843deb16be3e28068398c1397345c8bb22ea6c6 (patch) | |
| tree | da7c995b790947bfdef76ec633f430d70a523202 /lib/std | |
| parent | e528ab4709a3703b74de3a0006a9c07f056d3600 (diff) | |
| download | zig-7843deb16be3e28068398c1397345c8bb22ea6c6.tar.gz zig-7843deb16be3e28068398c1397345c8bb22ea6c6.zip | |
std.zig.system.darwin: Add driverkit handling in getSdk().
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/zig/system/darwin.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/zig/system/darwin.zig b/lib/std/zig/system/darwin.zig index cb2390e132..bd97845732 100644 --- a/lib/std/zig/system/darwin.zig +++ b/lib/std/zig/system/darwin.zig @@ -37,15 +37,16 @@ pub fn isSdkInstalled(allocator: Allocator) bool { pub fn getSdk(allocator: Allocator, target: Target) ?[]const u8 { const is_simulator_abi = target.abi == .simulator; const sdk = switch (target.os.tag) { - .macos => "macosx", .ios => switch (target.abi) { - .simulator => "iphonesimulator", .macabi => "macosx", + .simulator => "iphonesimulator", else => "iphoneos", }, - .watchos => if (is_simulator_abi) "watchsimulator" else "watchos", + .driverkit => "driverkit", + .macos => "macosx", .tvos => if (is_simulator_abi) "appletvsimulator" else "appletvos", .visionos => if (is_simulator_abi) "xrsimulator" else "xros", + .watchos => if (is_simulator_abi) "watchsimulator" else "watchos", else => return null, }; const argv = &[_][]const u8{ "xcrun", "--sdk", sdk, "--show-sdk-path" }; |
