| ... | ... | @@ -267,8 +267,11 @@ pub fn flush(self: *MachO, comp: *Compilation, prog_node: *std.Progress.Node) li |
| 267 | 267 | if (build_options.have_llvm) { |
| 268 | 268 | return self.base.linkAsArchive(comp, prog_node); |
| 269 | 269 | } else { |
| 270 | | log.err("TODO: non-LLVM archiver for MachO object files", .{}); |
| 271 | | return error.TODOImplementWritingStaticLibFiles; |
| 270 | try self.misc_errors.ensureUnusedCapacity(self.base.allocator, 1); |
| 271 | self.misc_errors.appendAssumeCapacity(.{ |
| 272 | .msg = try self.base.allocator.dupe(u8, "TODO: non-LLVM archiver for MachO object files"), |
| 273 | }); |
| 274 | return error.FlushFailure; |
| 272 | 275 | } |
| 273 | 276 | } |
| 274 | 277 | |
| ... | ... | @@ -2233,7 +2236,7 @@ pub fn lowerUnnamedConst(self: *MachO, typed_value: TypedValue, decl_index: Modu |
| 2233 | 2236 | .fail => |em| { |
| 2234 | 2237 | decl.analysis = .codegen_failure; |
| 2235 | 2238 | try mod.failed_decls.put(mod.gpa, decl_index, em); |
| 2236 | | log.err("{s}", .{em.msg}); |
| 2239 | log.debug("{s}", .{em.msg}); |
| 2237 | 2240 | return error.CodegenFail; |
| 2238 | 2241 | }, |
| 2239 | 2242 | }; |
| ... | ... | @@ -2388,7 +2391,7 @@ fn updateLazySymbolAtom( |
| 2388 | 2391 | const code = switch (res) { |
| 2389 | 2392 | .ok => code_buffer.items, |
| 2390 | 2393 | .fail => |em| { |
| 2391 | | log.err("{s}", .{em.msg}); |
| 2394 | log.debug("{s}", .{em.msg}); |
| 2392 | 2395 | return error.CodegenFail; |
| 2393 | 2396 | }, |
| 2394 | 2397 | }; |