1 # Build for the runtime interception helper library.
3 set(INTERCEPTION_SOURCES
7 interception_type_test.cc
10 include_directories(..)
12 set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
15 # Build universal binary on APPLE.
16 foreach(os ${SANITIZER_COMMON_SUPPORTED_DARWIN_OS})
17 add_compiler_rt_darwin_object_library(RTInterception ${os}
18 ARCH ${SANITIZER_COMMON_SUPPORTED_ARCH}
19 SOURCES ${INTERCEPTION_SOURCES}
20 CFLAGS ${INTERCEPTION_CFLAGS})
23 add_library(RTInterception.arm.android OBJECT ${INTERCEPTION_SOURCES})
24 set_target_compile_flags(RTInterception.arm.android
25 ${INTERCEPTION_CFLAGS})
27 # Otherwise, build separate libraries for each target.
28 foreach(arch ${SANITIZER_COMMON_SUPPORTED_ARCH})
29 add_compiler_rt_object_library(RTInterception ${arch}
30 SOURCES ${INTERCEPTION_SOURCES} CFLAGS ${INTERCEPTION_CFLAGS})