1 # Build for the runtime interception helper library. 2 3 set(INTERCEPTION_SOURCES 4 interception_linux.cc 5 interception_mac.cc 6 interception_win.cc 7 interception_type_test.cc 8 ) 9 10 include_directories(..) 11 12 set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS}) 13 append_rtti_flag(OFF INTERCEPTION_CFLAGS) 14 15 add_compiler_rt_object_libraries(RTInterception 16 OS ${SANITIZER_COMMON_SUPPORTED_OS} 17 ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH} 18 SOURCES ${INTERCEPTION_SOURCES} 19 CFLAGS ${INTERCEPTION_CFLAGS}) 20 21 if(COMPILER_RT_INCLUDE_TESTS) 22 add_subdirectory(tests) 23 endif() 24