Fix compile error

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
Jakub Konka 2020-08-18 22:37:25 +02:00
parent e4b3da2720
commit 34e628a0a0

View File

@ -134,10 +134,10 @@ fn writeMachOHeader(self: *MachO) !void {
pub fn flush(self: *MachO, module: *Module) !void {
// TODO implement flush
if (self.entry_addr == null and self.base.options.output_mode == .Exe) {
log.debug(.link, "flushing. no_entry_point_found = true\n", .{});
log.debug("flushing. no_entry_point_found = true\n", .{});
self.error_flags.no_entry_point_found = true;
} else {
log.debug(.link, "flushing. no_entry_point_found = false\n", .{});
log.debug("flushing. no_entry_point_found = false\n", .{});
self.error_flags.no_entry_point_found = false;
try self.writeMachOHeader();
}