macho: set allow_shlib_undefined to true when TSAN was requested

This commit is contained in:
Jakub Konka 2024-06-26 22:01:00 +02:00
parent e9309036b2
commit 766e281a72

View File

@ -192,7 +192,7 @@ pub fn createEmpty(
null
else
try std.fmt.allocPrint(arena, "{s}.o", .{emit.sub_path});
const allow_shlib_undefined = options.allow_shlib_undefined orelse false;
const allow_shlib_undefined = options.allow_shlib_undefined orelse comp.config.any_sanitize_thread;
const self = try arena.create(MachO);
self.* = .{