| ... | @@ -944,8 +944,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -944,8 +944,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 944 | if (options.sysroot) |sysroot| { | 944 | if (options.sysroot) |sysroot| { |
| 945 | break :blk sysroot; | 945 | break :blk sysroot; |
| 946 | } else if (darwin_can_use_system_sdk) { | 946 | } else if (darwin_can_use_system_sdk) { |
| 947 | // TODO Revisit this targeting versions lower than macOS 11 when LLVM 12 is out. | | |
| 948 | // See https://github.com/ziglang/zig/issues/6996 | | |
| 949 | const at_least_big_sur = options.target.os.getVersionRange().semver.min.major >= 11; | 947 | const at_least_big_sur = options.target.os.getVersionRange().semver.min.major >= 11; |
| 950 | break :blk if (at_least_big_sur) try std.zig.system.getSDKPath(arena) else null; | 948 | break :blk if (at_least_big_sur) try std.zig.system.getSDKPath(arena) else null; |
| 951 | } else { | 949 | } else { |
| ... | @@ -1029,7 +1027,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -1029,7 +1027,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 1029 | options.target, | 1027 | options.target, |
| 1030 | options.is_native_abi, | 1028 | options.is_native_abi, |
| 1031 | link_libc, | 1029 | link_libc, |
| 1032 | options.system_libs.len != 0, | 1030 | options.system_libs.len != 0 or options.frameworks.len != 0, |
| 1033 | options.libc_installation, | 1031 | options.libc_installation, |
| 1034 | ); | 1032 | ); |
| 1035 | | 1033 | |