1 # Build for the runtime interception helper library.
3 set(INTERCEPTION_SOURCES
7 interception_type_test.cpp
10 set(INTERCEPTION_HEADERS
17 include_directories(..)
19 set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
20 append_rtti_flag(OFF INTERCEPTION_CFLAGS)
22 # Silence warnings in system headers with MSVC.
23 append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" INTERCEPTION_CFLAGS)
25 add_compiler_rt_object_libraries(RTInterception
26 OS ${SANITIZER_COMMON_SUPPORTED_OS}
27 ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
28 SOURCES ${INTERCEPTION_SOURCES}
29 ADDITIONAL_HEADERS ${INTERCEPTION_HEADERS}
30 CFLAGS ${INTERCEPTION_CFLAGS})
32 if(COMPILER_RT_INCLUDE_TESTS)
33 add_subdirectory(tests)