1# Build for the runtime interception helper library.
2
3set(INTERCEPTION_SOURCES
4  interception_linux.cc
5  interception_mac.cc
6  interception_win.cc
7  interception_type_test.cc
8  )
9
10include_directories(..)
11
12set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
13append_no_rtti_flag(INTERCEPTION_CFLAGS)
14
15add_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