• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# First, add the subdirectories which contain feature-based runtime libraries
2# and several convenience helper libraries.
3
4include(AddCompilerRT)
5include(SanitizerUtils)
6
7if(COMPILER_RT_BUILD_BUILTINS)
8  add_subdirectory(builtins)
9endif()
10
11if(COMPILER_RT_BUILD_SANITIZERS)
12  if(COMPILER_RT_HAS_INTERCEPTION)
13    add_subdirectory(interception)
14  endif()
15
16  if(COMPILER_RT_HAS_SANITIZER_COMMON)
17    add_subdirectory(sanitizer_common)
18    add_subdirectory(stats)
19    add_subdirectory(lsan)
20    add_subdirectory(ubsan)
21  endif()
22
23  if(COMPILER_RT_HAS_ASAN)
24    add_subdirectory(asan)
25  endif()
26
27  if(COMPILER_RT_HAS_DFSAN)
28    add_subdirectory(dfsan)
29  endif()
30
31  if(COMPILER_RT_HAS_MSAN)
32    add_subdirectory(msan)
33  endif()
34
35  if(COMPILER_RT_HAS_PROFILE)
36    add_subdirectory(profile)
37  endif()
38
39  if(COMPILER_RT_HAS_TSAN)
40    add_subdirectory(tsan)
41    add_subdirectory(tsan/dd)
42  endif()
43
44  if(COMPILER_RT_HAS_SAFESTACK)
45    add_subdirectory(safestack)
46  endif()
47
48  if(COMPILER_RT_HAS_CFI)
49    add_subdirectory(cfi)
50  endif()
51
52  if(COMPILER_RT_HAS_ESAN)
53    add_subdirectory(esan)
54  endif()
55
56  if(COMPILER_RT_HAS_SCUDO)
57    add_subdirectory(scudo)
58  endif()
59endif()
60