[compiler-rt] r257202 - Fix CMake warning in CFI tests.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 12:04:01 PST 2016
Author: eugenis
Date: Fri Jan 8 14:04:01 2016
New Revision: 257202
URL: http://llvm.org/viewvc/llvm-project?rev=257202&view=rev
Log:
Fix CMake warning in CFI tests.
CFI tests do not require the CFI runtime library on Windows.
Do not add "cfi" as a dependency of "check-cfi" in that case.
Modified:
compiler-rt/trunk/test/cfi/CMakeLists.txt
Modified: compiler-rt/trunk/test/cfi/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/CMakeLists.txt?rev=257202&r1=257201&r2=257202&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/cfi/CMakeLists.txt Fri Jan 8 14:04:01 2016
@@ -6,10 +6,12 @@ configure_lit_site_cfg(
set(CFI_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
if(NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND CFI_TEST_DEPS
- cfi
opt
ubsan
)
+ if(COMPILER_RT_HAS_CFI)
+ list(APPEND CFI_TEST_DEPS cfi)
+ endif()
if(LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR)
list(APPEND CFI_TEST_DEPS
LLVMgold
More information about the llvm-commits
mailing list