| author | |
| committer | |
| log | f87424ab6393c3208d96a4f078c71f745a37c84b |
| tree | fcd32a26dd591920e796e7b74789fab63de34570 |
| parent | 9ca69c51e76525e1e753588375036ea711f72df0 |
2 files changed, 5 insertions(+), 4 deletions(-)
src/Compilation.zig+4-3| ... | @@ -907,9 +907,10 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -907,9 +907,10 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 907 | break :blk false; | 907 | break :blk false; |
| 908 | }; | 908 | }; |
| 909 | 909 | ||
| 910 | const darwin_can_use_system_sdk = comptime std.Target.current.isDarwin() and | 910 | const darwin_can_use_system_sdk = blk: { |
| 911 | std.builtin.os.tag == .macos and | 911 | if (comptime !std.Target.current.isDarwin()) break :blk false; |
| 912 | options.target.isDarwin(); | 912 | break :blk std.builtin.os.tag == .macos and options.target.isDarwin(); |
| 913 | }; | ||
| 913 | 914 | ||
| 914 | const sysroot = blk: { | 915 | const sysroot = blk: { |
| 915 | if (options.sysroot) |sysroot| { | 916 | if (options.sysroot) |sysroot| { |
src/link/MachO.zig+1-1| ... | @@ -434,7 +434,7 @@ pub fn flush(self: *MachO, comp: *Compilation) !void { | ... | @@ -434,7 +434,7 @@ pub fn flush(self: *MachO, comp: *Compilation) !void { |
| 434 | } | 434 | } |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | if (build_options.have_llvm and self.base.options.use_lld) { | 437 | if (build_options.have_llvm) { |
| 438 | return self.linkWithZld(comp); | 438 | return self.linkWithZld(comp); |
| 439 | } else { | 439 | } else { |
| 440 | switch (self.base.options.effectiveOutputMode()) { | 440 | switch (self.base.options.effectiveOutputMode()) { |