authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2021-02-19 15:52:34-05:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2021-02-19 23:37:13-05:00
log153cd4da0c723fe949bbf9eaf9d780500320bffc
treecb205d4a334e94b43d6419de68e04b407f257f73
parent68e7726478f89ca27127e68b79112c12ac7415f7

macos: fix cond to enable ZIG_SYSTEM_LINKER_HACK

closes #8037

1 files changed, 1 insertions(+), 1 deletions(-)

src/Compilation.zig+1-1
......@@ -645,7 +645,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
645645 };
646646
647647 const darwin_options: DarwinOptions = if (build_options.have_llvm and comptime std.Target.current.isDarwin()) outer: {
648 const opts: DarwinOptions = if (use_lld and options.is_native_os and options.target.isDarwin()) inner: {
648 const opts: DarwinOptions = if (use_lld and std.builtin.os.tag == .macos and options.target.isDarwin()) inner: {
649649 // TODO Revisit this targeting versions lower than macOS 11 when LLVM 12 is out.
650650 // See https://github.com/ziglang/zig/issues/6996
651651 const at_least_big_sur = options.target.os.getVersionRange().semver.min.major >= 11;