Commit 766e281a72

Jakub Konka <kubkon@jakubkonka.com>
2024-06-26 22:01:00
macho: set allow_shlib_undefined to true when TSAN was requested
1 parent e930903
Changed files (1)
src
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.* = .{