| ... | ... | @@ -465,11 +465,6 @@ pub fn flushModule(self: *MachO, arena: Allocator, tid: Zcu.PerThread.Id, prog_n |
| 465 | 465 | }; |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | | if (comp.fuzzer_lib) |fuzzer_lib| { |
| 469 | | _ = fuzzer_lib.full_object_path; |
| 470 | | log.err("TODO macho linking code for adding libfuzzer", .{}); |
| 471 | | } |
| 472 | | |
| 473 | 468 | // Finally, link against compiler_rt. |
| 474 | 469 | const compiler_rt_path: ?[]const u8 = blk: { |
| 475 | 470 | if (comp.compiler_rt_lib) |x| break :blk x.full_object_path; |
| ... | ... | @@ -767,6 +762,10 @@ fn dumpArgv(self: *MachO, comp: *Compilation) !void { |
| 767 | 762 | try argv.appendSlice(&.{ "-rpath", std.fs.path.dirname(path) orelse "." }); |
| 768 | 763 | } |
| 769 | 764 | |
| 765 | if (comp.config.any_fuzz) { |
| 766 | try argv.append(comp.fuzzer_lib.?.full_object_path); |
| 767 | } |
| 768 | |
| 770 | 769 | for (self.lib_dirs) |lib_dir| { |
| 771 | 770 | const arg = try std.fmt.allocPrint(arena, "-L{s}", .{lib_dir}); |
| 772 | 771 | try argv.append(arg); |