Chandler Carruth | c78ad00 | 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 | d951290 | 2013-09-02 08:57:23 +0000 | [diff] [blame] | 3 | |
Alexey Samsonov | 9a1ffce | 2014-02-18 07:26:58 +0000 | [diff] [blame] | 4 | include(AddCompilerRT) |
| 5 | include(SanitizerUtils) |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 6 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 7 | if(COMPILER_RT_BUILD_BUILTINS) |
| 8 | add_subdirectory(builtins) |
Peter Collingbourne | d3b9917 | 2015-07-02 01:44:34 +0000 | [diff] [blame] | 9 | endif() |
| 10 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 11 | if(COMPILER_RT_BUILD_SANITIZERS) |
| 12 | if(COMPILER_RT_HAS_INTERCEPTION) |
| 13 | add_subdirectory(interception) |
| 14 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 15 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 16 | if(COMPILER_RT_HAS_SANITIZER_COMMON) |
| 17 | add_subdirectory(sanitizer_common) |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 18 | add_subdirectory(lsan) |
| 19 | add_subdirectory(ubsan) |
| 20 | endif() |
Chandler Carruth | e80a289 | 2012-06-22 21:09:10 +0000 | [diff] [blame] | 21 | |
Alexey Samsonov | 4133c18 | 2015-09-29 21:43:37 +0000 | [diff] [blame] | 22 | add_subdirectory(cfi) |
| 23 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 24 | if(COMPILER_RT_HAS_ASAN) |
| 25 | add_subdirectory(asan) |
| 26 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 27 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 28 | if(COMPILER_RT_HAS_DFSAN) |
| 29 | add_subdirectory(dfsan) |
| 30 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 31 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 32 | if(COMPILER_RT_HAS_MSAN) |
| 33 | add_subdirectory(msan) |
| 34 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 35 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 36 | if(COMPILER_RT_HAS_PROFILE) |
| 37 | add_subdirectory(profile) |
| 38 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 39 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 40 | if(COMPILER_RT_HAS_TSAN) |
| 41 | add_subdirectory(tsan) |
| 42 | add_subdirectory(tsan/dd) |
| 43 | endif() |
Alexey Samsonov | 68b9e74 | 2014-08-08 22:01:20 +0000 | [diff] [blame] | 44 | |
Chris Bieneman | 679ab85 | 2015-09-14 19:59:24 +0000 | [diff] [blame] | 45 | if(COMPILER_RT_HAS_SAFESTACK) |
| 46 | add_subdirectory(safestack) |
| 47 | endif() |
Peter Collingbourne | b64d0b1 | 2015-06-15 21:08:47 +0000 | [diff] [blame] | 48 | endif() |