2012-06-25 16:40:10 +08:00
|
|
|
# Build for the runtime interception helper library.
|
|
|
|
|
|
|
|
set(INTERCEPTION_SOURCES
|
|
|
|
interception_linux.cc
|
|
|
|
interception_mac.cc
|
|
|
|
interception_win.cc
|
2013-02-07 15:37:12 +08:00
|
|
|
interception_type_test.cc
|
2012-06-25 16:40:10 +08:00
|
|
|
)
|
|
|
|
|
2013-01-30 22:27:41 +08:00
|
|
|
include_directories(..)
|
|
|
|
|
2014-02-18 15:52:40 +08:00
|
|
|
set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
|
2016-03-05 18:01:04 +08:00
|
|
|
append_rtti_flag(OFF INTERCEPTION_CFLAGS)
|
2012-06-25 16:40:10 +08:00
|
|
|
|
2015-06-11 07:55:07 +08:00
|
|
|
add_compiler_rt_object_libraries(RTInterception
|
|
|
|
OS ${SANITIZER_COMMON_SUPPORTED_OS}
|
2015-06-19 11:39:24 +08:00
|
|
|
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
2015-06-11 07:55:07 +08:00
|
|
|
SOURCES ${INTERCEPTION_SOURCES}
|
|
|
|
CFLAGS ${INTERCEPTION_CFLAGS})
|