Home | History | Annotate | Download | only in lib
      1 # First, add the subdirectories which contain feature-based runtime libraries
      2 # and several convenience helper libraries.
      3 
      4 include(AddCompilerRT)
      5 include(SanitizerUtils)
      6 
      7 if(COMPILER_RT_BUILD_BUILTINS)
      8   add_subdirectory(builtins)
      9 endif()
     10 
     11 if(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(lsan)
     19     add_subdirectory(ubsan)
     20   endif()
     21 
     22   if(COMPILER_RT_HAS_ASAN)
     23     add_subdirectory(asan)
     24   endif()
     25 
     26   if(COMPILER_RT_HAS_DFSAN)
     27     add_subdirectory(dfsan)
     28   endif()
     29 
     30   if(COMPILER_RT_HAS_MSAN)
     31     add_subdirectory(msan)
     32   endif()
     33 
     34   if(COMPILER_RT_HAS_PROFILE)
     35     add_subdirectory(profile)
     36   endif()
     37 
     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()
     50 endif()
     51