Chandler Carruth | a765ffc | 2012-06-25 08:40:10 +0000 | [diff] [blame] | 1 | # First, add the subdirectories which contain feature-based runtime libraries |
| 2 | # and several convenience helper libraries. |
Alexey Samsonov | 642db07 | 2013-09-02 08:57:23 +0000 | [diff] [blame] | 3 | |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 4 | include(AddCompilerRT) |
| 5 | include(SanitizerUtils) |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 6 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 7 | if(COMPILER_RT_BUILD_BUILTINS) |
| 8 | add_subdirectory(builtins) |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 9 | endif() |
| 10 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 11 | if(COMPILER_RT_BUILD_SANITIZERS) |
| 12 | if(COMPILER_RT_HAS_INTERCEPTION) |
| 13 | add_subdirectory(interception) |
| 14 | endif() |
Chandler Carruth | 0c87068 | 2012-06-22 21:09:10 +0000 | [diff] [blame] | 15 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 16 | if(COMPILER_RT_HAS_SANITIZER_COMMON) |
| 17 | add_subdirectory(sanitizer_common) |
| 18 | add_subdirectory(lsan) |
| 19 | add_subdirectory(ubsan) |
| 20 | endif() |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 21 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 22 | if(COMPILER_RT_HAS_ASAN) |
| 23 | add_subdirectory(asan) |
| 24 | endif() |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 25 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 26 | if(COMPILER_RT_HAS_DFSAN) |
| 27 | add_subdirectory(dfsan) |
| 28 | endif() |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 29 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 30 | if(COMPILER_RT_HAS_MSAN) |
| 31 | add_subdirectory(msan) |
| 32 | endif() |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 33 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 34 | if(COMPILER_RT_HAS_PROFILE) |
| 35 | add_subdirectory(profile) |
| 36 | endif() |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 37 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 38 | if(COMPILER_RT_HAS_TSAN) |
| 39 | add_subdirectory(tsan) |
| 40 | add_subdirectory(tsan/dd) |
| 41 | endif() |
| 42 | |
| 43 | if(COMPILER_RT_HAS_SAFESTACK) |
| 44 | add_subdirectory(safestack) |
| 45 | endif() |
| 46 | |
| 47 | if(COMPILER_RT_HAS_CFI) |
| 48 | add_subdirectory(cfi) |
| 49 | endif() |
Pirama Arumuga Nainar | cdce50b | 2015-07-01 12:26:56 -0700 | [diff] [blame] | 50 | endif() |