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