Chandler Carruth | a765ffc | 2012-06-25 08:40:10 +0000 | [diff] [blame] | 1 | # Build for the runtime interception helper library. |
| 2 | |
| 3 | set(INTERCEPTION_SOURCES |
| 4 | interception_linux.cc |
| 5 | interception_mac.cc |
| 6 | interception_win.cc |
Evgeniy Stepanov | 65e5090 | 2013-02-07 07:37:12 +0000 | [diff] [blame] | 7 | interception_type_test.cc |
Chandler Carruth | a765ffc | 2012-06-25 08:40:10 +0000 | [diff] [blame] | 8 | ) |
| 9 | |
Alexey Samsonov | 216719b | 2013-01-30 14:27:41 +0000 | [diff] [blame] | 10 | include_directories(..) |
| 11 | |
Alexey Samsonov | 0f7d4a4 | 2012-09-05 09:00:03 +0000 | [diff] [blame] | 12 | set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS}) |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 13 | append_no_rtti_flag(INTERCEPTION_CFLAGS) |
Chandler Carruth | a765ffc | 2012-06-25 08:40:10 +0000 | [diff] [blame] | 14 | |
Pirama Arumuga Nainar | cdce50b | 2015-07-01 12:26:56 -0700 | [diff] [blame] | 15 | add_compiler_rt_object_libraries(RTInterception |
| 16 | OS ${SANITIZER_COMMON_SUPPORTED_OS} |
| 17 | ARCH ${SANITIZER_COMMON_SUPPORTED_ARCH} |
| 18 | SOURCES ${INTERCEPTION_SOURCES} |
| 19 | CFLAGS ${INTERCEPTION_CFLAGS}) |