mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
macho: link in TSAN if requested
This commit is contained in:
parent
3e9ab6aa7b
commit
6e78642d51
@ -411,6 +411,11 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: std.Progress.Node)
|
||||
|
||||
if (module_obj_path) |path| try positionals.append(.{ .path = path });
|
||||
|
||||
// TSAN
|
||||
if (comp.config.any_sanitize_thread) {
|
||||
try positionals.append(.{ .path = comp.tsan_static_lib.?.full_object_path });
|
||||
}
|
||||
|
||||
for (positionals.items) |obj| {
|
||||
self.parsePositional(obj.path, obj.must_link) catch |err| switch (err) {
|
||||
error.MalformedObject,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user