zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 011a468381a0217bff7f98817c0df593cbcc85ec (tree)
parent bd8baefaaad97d3ec3c47163113e4b5778ef83b4
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Wed,  4 Aug 2021 23:28:57 +0200

Link system libc if natively linking frameworks on macOS

Diffstat:
Msrc/Compilation.zig | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Compilation.zig b/src/Compilation.zig @@ -944,8 +944,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { if (options.sysroot) |sysroot| { break :blk sysroot; } else if (darwin_can_use_system_sdk) { - // TODO Revisit this targeting versions lower than macOS 11 when LLVM 12 is out. - // See https://github.com/ziglang/zig/issues/6996 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; } else { @@ -1029,7 +1027,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { options.target, options.is_native_abi, link_libc, - options.system_libs.len != 0, + options.system_libs.len != 0 or options.frameworks.len != 0, options.libc_installation, );