From 766e281a72bb915ebee21cafd862d6b7a2a298ca Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 26 Jun 2024 22:01:00 +0200 Subject: [PATCH] macho: set allow_shlib_undefined to true when TSAN was requested --- src/link/MachO.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 75b2ab4d74..dd185fcaec 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -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.* = .{