blob: 16b41c976d6bc220ce442552f801e030532f50bd [file] [log] [blame]
Chandler Carrutha765ffc2012-06-25 08:40:10 +00001# Build for the runtime interception helper library.
2
3set(INTERCEPTION_SOURCES
4 interception_linux.cc
5 interception_mac.cc
6 interception_win.cc
Evgeniy Stepanov65e50902013-02-07 07:37:12 +00007 interception_type_test.cc
Chandler Carrutha765ffc2012-06-25 08:40:10 +00008 )
9
Alexey Samsonov216719b2013-01-30 14:27:41 +000010include_directories(..)
11
Alexey Samsonov0f7d4a42012-09-05 09:00:03 +000012set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
Stephen Hines2d1fdb22014-05-28 23:58:16 -070013append_no_rtti_flag(INTERCEPTION_CFLAGS)
Chandler Carrutha765ffc2012-06-25 08:40:10 +000014
Pirama Arumuga Nainarcdce50b2015-07-01 12:26:56 -070015add_compiler_rt_object_libraries(RTInterception
16 OS ${SANITIZER_COMMON_SUPPORTED_OS}
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -080017 ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
Pirama Arumuga Nainarcdce50b2015-07-01 12:26:56 -070018 SOURCES ${INTERCEPTION_SOURCES}
19 CFLAGS ${INTERCEPTION_CFLAGS})