authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-07-04 22:03:31+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-07-04 22:03:31+02:00
loge42e12dbbf8ebae65589ff08c3b5a454d2d67441
treef074b0c832be0abda892d7778b44220934046f18
parent6756aaccf14e168132cabe8e0d7933f4fd51e9a9

tsan: fix wording in comments


1 files changed, 3 insertions(+), 4 deletions(-)

src/libtsan.zig+3-4
...@@ -27,9 +27,8 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo...@@ -27,9 +27,8 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo
2727
28 const target = comp.getTarget();28 const target = comp.getTarget();
29 const root_name = switch (target.os.tag) {29 const root_name = switch (target.os.tag) {
30 // On Apple platforms, we use the same name as LLVM and Apple so that we correctly30 // On Apple platforms, we use the same name as LLVM because the
31 // mark the images as instrumented when traversing them when TSAN dylib is31 // TSAN library implementation hard-codes a check for these names.
32 // initialized.
33 .macos => "clang_rt.tsan_osx_dynamic",32 .macos => "clang_rt.tsan_osx_dynamic",
34 .ios => switch (target.abi) {33 .ios => switch (target.abi) {
35 .simulator => "clang_rt.tsan_iossim_dynamic",34 .simulator => "clang_rt.tsan_iossim_dynamic",
...@@ -290,7 +289,7 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo...@@ -290,7 +289,7 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo
290 try std.fmt.allocPrintZ(arena, "@rpath/{s}", .{basename})289 try std.fmt.allocPrintZ(arena, "@rpath/{s}", .{basename})
291 else290 else
292 null;291 null;
293 // This is temp conditional on resolving https://github.com/llvm/llvm-project/issues/97627 upstream.292 // Workaround for https://github.com/llvm/llvm-project/issues/97627
294 const headerpad_size: ?u32 = if (target.isDarwin()) 32 else null;293 const headerpad_size: ?u32 = if (target.isDarwin()) 32 else null;
295 const sub_compilation = Compilation.create(comp.gpa, arena, .{294 const sub_compilation = Compilation.create(comp.gpa, arena, .{
296 .local_cache_directory = comp.global_cache_directory,295 .local_cache_directory = comp.global_cache_directory,