Fix CMake warning in CFI tests.

Fix incorrect condition for enabling the CFI tests. This removes the following CMake warnings on Windows:

The dependency target "cfi" of target "check-all" does not exist.
The dependency target "cfi" of target "check-cfi-and-supported" does not exist.

llvm-svn: 257199
This commit is contained in:
Evgeniy Stepanov 2016-01-08 19:46:18 +00:00
parent a6a3279bd3
commit bec6f6b731
1 changed files with 1 additions and 1 deletions

View File

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