authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-19 00:36:16-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-23 16:27:38-07:00
logab33d2e7a90346be43693a7dd0e2276e894a67ba
tree2a663d22cc467d731ccda3bd19cabfdef7061da7
parent3cc19cd86518f8ae2a7bd48577d30577cfbbd391

add missing check for output mode in tsan logic


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

src/Compilation.zig+4-6
......@@ -1886,7 +1886,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
18861886 try comp.queueJob(.libcxx);
18871887 try comp.queueJob(.libcxxabi);
18881888 }
1889 if (build_options.have_llvm and comp.config.any_sanitize_thread) {
1889 if (build_options.have_llvm and is_exe_or_dyn_lib and comp.config.any_sanitize_thread) {
18901890 try comp.queueJob(.libtsan);
18911891 }
18921892
......@@ -1914,11 +1914,9 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
19141914 }
19151915 }
19161916
1917 if (comp.config.any_fuzz and capable_of_building_compiler_rt) {
1918 if (is_exe_or_dyn_lib) {
1919 log.debug("queuing a job to build libfuzzer", .{});
1920 comp.job_queued_fuzzer_lib = true;
1921 }
1917 if (is_exe_or_dyn_lib and comp.config.any_fuzz and capable_of_building_compiler_rt) {
1918 log.debug("queuing a job to build libfuzzer", .{});
1919 comp.job_queued_fuzzer_lib = true;
19221920 }
19231921 }
19241922