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)
9 add_subdirectory(ubsan)
11 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
12 # ThreadSanitizer and MemorySanitizer are supported on Linux only.
13 add_subdirectory(tsan)
14 add_subdirectory(msan)
17 # FIXME: Add support for the profile library.
19 # The top-level lib directory contains a large amount of C code which provides
20 # generic implementations of the core runtime library along with optimized
21 # architecture-specific code in various subdirectories.
58 enable_execute_stack.c
153 if(CAN_TARGET_X86_64)
154 add_library(clang_rt.x86_64 STATIC
163 set_target_properties(clang_rt.x86_64 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_X86_64_CFLAGS}")
164 add_clang_compiler_rt_libraries(clang_rt.x86_64)
167 add_library(clang_rt.i386 STATIC
184 set_target_properties(clang_rt.i386 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_I386_CFLAGS}")
185 add_clang_compiler_rt_libraries(clang_rt.i386)