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 | |
| 7 | if(COMPILER_RT_HAS_SANITIZER_COMMON) |
| 8 | add_subdirectory(interception) |
| 9 | add_subdirectory(sanitizer_common) |
Pirama Arumuga Nainar | 7c91505 | 2015-04-08 08:58:29 -0700 | [diff] [blame] | 10 | add_subdirectory(lsan) |
Pirama Arumuga Nainar | 259f706 | 2015-05-06 11:49:53 -0700 | [diff] [blame] | 11 | add_subdirectory(ubsan) |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 12 | endif() |
| 13 | |
| 14 | if(COMPILER_RT_HAS_ASAN) |
| 15 | add_subdirectory(asan) |
Alexey Samsonov | 06dc82d | 2012-09-19 13:11:13 +0000 | [diff] [blame] | 16 | endif() |
Chandler Carruth | 0c87068 | 2012-06-22 21:09:10 +0000 | [diff] [blame] | 17 | |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 18 | add_subdirectory(builtins) |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 19 | |
| 20 | if(COMPILER_RT_HAS_DFSAN) |
| 21 | add_subdirectory(dfsan) |
| 22 | endif() |
| 23 | |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 24 | if(COMPILER_RT_HAS_MSAN) |
| 25 | add_subdirectory(msan) |
| 26 | endif() |
| 27 | |
| 28 | if(COMPILER_RT_HAS_PROFILE) |
| 29 | add_subdirectory(profile) |
| 30 | endif() |
| 31 | |
| 32 | if(COMPILER_RT_HAS_TSAN) |
| 33 | add_subdirectory(tsan) |
| 34 | add_subdirectory(tsan/dd) |
| 35 | endif() |
| 36 | |
Pirama Arumuga Nainar | cdce50b | 2015-07-01 12:26:56 -0700 | [diff] [blame] | 37 | if(COMPILER_RT_HAS_SAFESTACK) |
| 38 | add_subdirectory(safestack) |
| 39 | endif() |