mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
tsan: Handle more Apple targets when picking library name.
This commit is contained in:
parent
0563525b21
commit
2a65b84572
@ -29,11 +29,11 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo
|
|||||||
const root_name = switch (target.os.tag) {
|
const root_name = switch (target.os.tag) {
|
||||||
// On Apple platforms, we use the same name as LLVM because the
|
// On Apple platforms, we use the same name as LLVM because the
|
||||||
// TSAN library implementation hard-codes a check for these names.
|
// TSAN library implementation hard-codes a check for these names.
|
||||||
.macos => "clang_rt.tsan_osx_dynamic",
|
.driverkit, .macos => "clang_rt.tsan_osx_dynamic",
|
||||||
.ios => switch (target.abi) {
|
.ios => if (target.abi == .simulator) "clang_rt.tsan_iossim_dynamic" else "clang_rt.tsan_ios_dynamic",
|
||||||
.simulator => "clang_rt.tsan_iossim_dynamic",
|
.tvos => if (target.abi == .simulator) "clang_rt.tsan_tvossim_dynamic" else "clang_rt.tsan_tvos_dynamic",
|
||||||
else => "clang_rt.tsan_ios_dynamic",
|
.visionos => if (target.abi == .simulator) "clang_rt.tsan_xrossim_dynamic" else "clang_rt.tsan_xros_dynamic",
|
||||||
},
|
.watchos => if (target.abi == .simulator) "clang_rt.tsan_watchossim_dynamic" else "clang_rt.tsan_watchos_dynamic",
|
||||||
else => "tsan",
|
else => "tsan",
|
||||||
};
|
};
|
||||||
const link_mode: std.builtin.LinkMode = if (target.isDarwin()) .dynamic else .static;
|
const link_mode: std.builtin.LinkMode = if (target.isDarwin()) .dynamic else .static;
|
||||||
|
Loading…
Reference in New Issue
Block a user