| author | |
| committer | |
| log | ab69b89d528c828e949bb2d2f3632401a2d382fe |
| tree | 64156d62331c6d5549e000f6a2d517da1e26df1a |
| parent | b7c3ebcb9e3aefbdd82a43c7ab122931787c7805 |
2 files changed, 2 insertions(+), 2 deletions(-)
src/Compilation.zig+1-1| ... | ... | @@ -480,7 +480,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 480 | 480 | const darwin_options: DarwinOptions = if (build_options.have_llvm and comptime std.Target.current.isDarwin()) outer: { |
| 481 | 481 | const opts: DarwinOptions = if (use_lld and options.is_native_os and options.target.isDarwin()) inner: { |
| 482 | 482 | const syslibroot = try std.zig.system.getSDKPath(arena); |
| 483 | const system_linker_hack = if (std.os.getenv("ZIG_SYSTEM_LINKER_HACK")) |_| true else false; | |
| 483 | const system_linker_hack = std.os.getenv("ZIG_SYSTEM_LINKER_HACK") != null; | |
| 484 | 484 | break :inner .{ |
| 485 | 485 | .syslibroot = syslibroot, |
| 486 | 486 | .system_linker_hack = system_linker_hack, |
src/link/MachO.zig+1-1| ... | ... | @@ -726,7 +726,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 726 | 726 | if (result.stderr.len != 0) { |
| 727 | 727 | std.log.warn("unexpected LD stderr: {}", .{result.stderr}); |
| 728 | 728 | } |
| 729 | if (result.term.Exited != 0) { | |
| 729 | if (result.term != .Exited or result.term.Exited != 0) { | |
| 730 | 730 | // TODO parse this output and surface with the Compilation API rather than |
| 731 | 731 | // directly outputting to stderr here. |
| 732 | 732 | std.debug.print("{}", .{result.stderr}); |