Lines Matching +full:clang +full:- +full:tsan
6 # SANITIZER_COMMON_CFLAGS contains -fPIC, but it's performance-critical for
7 # TSan runtime to be built with -fPIE to reduce the number of register spills.
8 append_list_if(COMPILER_RT_HAS_FPIE_FLAG -fPIE TSAN_CFLAGS)
12 # Add extra debug information to TSan runtime. This configuration is rarely
14 list(APPEND TSAN_CFLAGS -DTSAN_COLLECT_STATS=1
15 -DTSAN_DEBUG_OUTPUT=2)
19 append_list_if(COMPILER_RT_HAS_MSSE3_FLAG -msse3 TSAN_RTL_CFLAGS)
20 append_list_if(SANITIZER_LIMIT_FRAME_SIZE -Wframe-larger-than=512
22 append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
99 add_custom_target(tsan) target
100 set_target_properties(tsan PROPERTIES FOLDER "Compiler-RT Misc")
104 # Xcode will try to compile this file as C ('clang -x c'), and that will fail.
111 add_compiler_rt_runtime(clang_rt.tsan
121 PARENT_TARGET tsan)
133 DEPENDS tsan ${BUILDGO_SCRIPT}
135 COMMENT "Checking TSan Go runtime..."
149 DEPENDS clang_rt.tsan-${arch} ${BUILDGO_SCRIPT}
151 COMMENT "Checking TSan Go runtime..."
166 add_compiler_rt_runtime(clang_rt.tsan
181 list(APPEND TSAN_RUNTIME_LIBRARIES clang_rt.tsan-${arch}
182 clang_rt.tsan_cxx-${arch})
183 add_sanitizer_rt_symbols(clang_rt.tsan
185 EXTRA rtl/tsan.syms.extra)
188 EXTRA rtl/tsan.syms.extra)
189 add_dependencies(tsan clang_rt.tsan-${arch}
190 clang_rt.tsan_cxx-${arch}
191 clang_rt.tsan-${arch}-symbols
192 clang_rt.tsan_cxx-${arch}-symbols)
196 add_dependencies(compiler-rt tsan)
198 # Make sure that non-platform-specific files don't include any system headers.
199 # FreeBSD does not install a number of Clang-provided headers for the compiler
200 # in the base system due to incompatibilities between FreeBSD's and Clang's
201 # versions. As a workaround do not use --sysroot=. on FreeBSD until this is
204 file(GLOB _tsan_generic_sources rtl/tsan*)
205 file(GLOB _tsan_platform_sources rtl/tsan*posix* rtl/tsan*mac*
206 rtl/tsan*linux*)
209 PROPERTIES COMPILE_FLAGS "--sysroot=.")
212 # Build libcxx instrumented with TSan.
214 COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang")
221 CFLAGS ${TARGET_CFLAGS} -fsanitize=thread)