[CFI] Make CFI tests require UBSan (for diagnostic mode).

CFI itself, on the other hand, doesn't require anything, including
sanitizer_common.

llvm-svn: 248830
This commit is contained in:
Alexey Samsonov 2015-09-29 21:43:37 +00:00
parent 7aba3960c7
commit 4133c18b1c
2 changed files with 6 additions and 2 deletions

View File

@ -15,11 +15,12 @@ if(COMPILER_RT_BUILD_SANITIZERS)
if(COMPILER_RT_HAS_SANITIZER_COMMON)
add_subdirectory(sanitizer_common)
add_subdirectory(cfi)
add_subdirectory(lsan)
add_subdirectory(ubsan)
endif()
add_subdirectory(cfi)
if(COMPILER_RT_HAS_ASAN)
add_subdirectory(asan)
endif()

View File

@ -60,7 +60,10 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS)
if(COMPILER_RT_HAS_UBSAN)
add_subdirectory(ubsan)
endif()
add_subdirectory(cfi)
# CFI tests require diagnostic mode, which is implemented in UBSan.
if(COMPILER_RT_HAS_UBSAN)
add_subdirectory(cfi)
endif()
if(COMPILER_RT_HAS_SAFESTACK)
add_subdirectory(safestack)
endif()