1 # First, add the subdirectories which contain feature-based runtime libraries
2 # and several convenience helper libraries.
3 if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux")
4 # AddressSanitizer is supported on Linux and Mac OS X.
5 # Windows support is work in progress.
7 add_subdirectory(interception)
8 add_subdirectory(sanitizer_common)
10 add_subdirectory(profile)
11 add_subdirectory(ubsan)
14 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND NOT ANDROID)
15 # ThreadSanitizer and MemorySanitizer are supported on Linux only.
16 add_subdirectory(tsan)
17 add_subdirectory(msan)
18 add_subdirectory(msandr)
19 add_subdirectory(lsan)
22 # The top-level lib directory contains a large amount of C code which provides
23 # generic implementations of the core runtime library along with optimized
24 # architecture-specific code in various subdirectories.
40 # FIXME: atomic.c may only be compiled if host compiler understands _Atomic
63 enable_execute_stack.c
184 foreach(arch x86_64 i386)
185 if(CAN_TARGET_${arch})
186 add_compiler_rt_static_runtime(clang_rt.${arch} ${arch}
187 SOURCES ${${arch}_SOURCES}