diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-11 19:36:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 19:36:21 +0200 |
| commit | 60a5552d414ffedf84117df57963fd5bf099c2ea (patch) | |
| tree | 586178dc0f24bf9875e58a830af1e2fdde51af2f /src/Compilation.zig | |
| parent | f2bf1390a29a9decaa5ca49d3ae720b360583b35 (diff) | |
| parent | 509fe33d10e4e89a351678f4d466f30a7870ebcf (diff) | |
| download | zig-60a5552d414ffedf84117df57963fd5bf099c2ea.tar.gz zig-60a5552d414ffedf84117df57963fd5bf099c2ea.zip | |
Merge pull request #9532 from ziglang/basic-ios-support
Add minimal support to Zig toolchain to support building iOS binaries
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 24e2d9e67f..7987ed95df 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -944,8 +944,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { if (options.sysroot) |sysroot| { break :blk sysroot; } else if (darwin_can_use_system_sdk) { - const at_least_big_sur = options.target.os.getVersionRange().semver.min.major >= 11; - break :blk if (at_least_big_sur) try std.zig.system.getSDKPath(arena) else null; + break :blk try std.zig.system.darwin.getSDKPath(arena, options.target); } else { break :blk null; } |
