Skip to content

Commit 552ab0c

Browse files
committed
Build compile-rt with libdispatch interception to support TSan on Linux
I recently enabled TSan interceptors for libdispatch on non-Apple platforms in upstream. This is on by default on Apple platforms. Let's try to switch it on for other platforms too.
1 parent 744b157 commit 552ab0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build-script-impl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,6 +2169,7 @@ for host in "${ALL_HOSTS[@]}"; do
21692169
-DLLVM_TOOL_SWIFT_BUILD:BOOL=NO
21702170
-DLLVM_INCLUDE_DOCS:BOOL=TRUE
21712171
-DLLVM_ENABLE_LTO:STRING="${LLVM_ENABLE_LTO}"
2172+
-DCOMPILER_RT_INTERCEPT_LIBDISPATCH=ON
21722173
"${llvm_cmake_options[@]}"
21732174
)
21742175

0 commit comments

Comments
 (0)