[compiler-rt] r257199 - Fix CMake warning in CFI tests.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 11:46:18 PST 2016
Author: eugenis
Date: Fri Jan 8 13:46:18 2016
New Revision: 257199
URL: http://llvm.org/viewvc/llvm-project?rev=257199&view=rev
Log:
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.
Modified:
compiler-rt/trunk/test/CMakeLists.txt
Modified: compiler-rt/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/CMakeLists.txt?rev=257199&r1=257198&r2=257199&view=diff
==============================================================================
--- compiler-rt/trunk/test/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/CMakeLists.txt Fri Jan 8 13:46:18 2016
@@ -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)
More information about the llvm-commits
mailing list