macho: print libtsan ref when dumping argv

This commit is contained in:
Jakub Konka
2024-06-26 08:43:46 +02:00
parent 6e78642d51
commit e9309036b2

View File

@@ -830,6 +830,10 @@ fn dumpArgv(self: *MachO, comp: *Compilation) !void {
try argv.append(p);
}
if (comp.config.any_sanitize_thread) {
try argv.append(comp.tsan_static_lib.?.full_object_path);
}
for (self.lib_dirs) |lib_dir| {
const arg = try std.fmt.allocPrint(arena, "-L{s}", .{lib_dir});
try argv.append(arg);