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...@@ -1886,7 +1886,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
1886 try comp.queueJob(.libcxx);1886 try comp.queueJob(.libcxx);
1887 try comp.queueJob(.libcxxabi);1887 try comp.queueJob(.libcxxabi);
1888 }1888 }
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) {
1890 try comp.queueJob(.libtsan);1890 try comp.queueJob(.libtsan);
1891 }1891 }
18921892
...@@ -1914,11 +1914,9 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil...@@ -1914,11 +1914,9 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
1914 }1914 }
1915 }1915 }
19161916
1917 if (comp.config.any_fuzz and capable_of_building_compiler_rt) {1917 if (is_exe_or_dyn_lib and comp.config.any_fuzz and capable_of_building_compiler_rt) {
1918 if (is_exe_or_dyn_lib) {1918 log.debug("queuing a job to build libfuzzer", .{});
1919 log.debug("queuing a job to build libfuzzer", .{});1919 comp.job_queued_fuzzer_lib = true;
1920 comp.job_queued_fuzzer_lib = true;
1921 }
1922 }1920 }
1923 }1921 }
19241922