diff options
Diffstat (limited to 'compiler-rt/lib/CMakeLists.txt')
| -rw-r--r-- | compiler-rt/lib/CMakeLists.txt | 41 |
1 files changed, 5 insertions, 36 deletions
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt index 9215b080b7b..d461dffc1b2 100644 --- a/compiler-rt/lib/CMakeLists.txt +++ b/compiler-rt/lib/CMakeLists.txt @@ -9,40 +9,9 @@ if(COMPILER_RT_BUILD_BUILTINS) endif() if(COMPILER_RT_BUILD_SANITIZERS) - if(COMPILER_RT_HAS_INTERCEPTION) - add_subdirectory(interception) - endif() - - if(COMPILER_RT_HAS_SANITIZER_COMMON) - add_subdirectory(sanitizer_common) - add_subdirectory(lsan) - add_subdirectory(ubsan) - endif() - - add_subdirectory(cfi) - - if(COMPILER_RT_HAS_ASAN) - add_subdirectory(asan) - endif() - - if(COMPILER_RT_HAS_DFSAN) - add_subdirectory(dfsan) - endif() - - if(COMPILER_RT_HAS_MSAN) - add_subdirectory(msan) - endif() - - if(COMPILER_RT_HAS_PROFILE) - add_subdirectory(profile) - endif() - - if(COMPILER_RT_HAS_TSAN) - add_subdirectory(tsan) - add_subdirectory(tsan/dd) - endif() - - if(COMPILER_RT_HAS_SAFESTACK) - add_subdirectory(safestack) - endif() + message(STATUS "Adding runtimes...") + foreach(runtime ${COMPILER_RT_RUNTIMES_TO_BUILD}) + message(STATUS "Adding runtime: ${runtime}") + add_subdirectory(${runtime}) + endforeach() endif() |

