forked from OSchip/llvm-project
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:
parent
a6a3279bd3
commit
bec6f6b731
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue