| ... | ... | @@ -645,7 +645,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 645 | 645 | }; |
| 646 | 646 | |
| 647 | 647 | 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: { |
| 649 | 649 | // TODO Revisit this targeting versions lower than macOS 11 when LLVM 12 is out. |
| 650 | 650 | // See https://github.com/ziglang/zig/issues/6996 |
| 651 | 651 | const at_least_big_sur = options.target.os.getVersionRange().semver.min.major >= 11; |