From: Marcos Pividori Date: Sun, 22 Jan 2017 01:27:34 +0000 (+0000) Subject: [libFuzzer] Remove dependencies for tests on Windows. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4509e88ac3088e1cd28e157453bf262893d3f90e;p=llvm [libFuzzer] Remove dependencies for tests on Windows. Remove dependency on FileCheck, sancov and not for tests on Windows. If LLVM_USE_SANITIZER=Address and LLVM_USE_SANITIZE_COVERAGE=YES, this will trigger the building of dependencies with sanitizer instrumentation. This will fail in Windows, since cmake will use link.exe for linking and won't include compiler-rt libraries. Differential Revision: https://reviews.llvm.org/D27993 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292735 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/test/CMakeLists.txt b/lib/Fuzzer/test/CMakeLists.txt index 18e9e81f2fc..972dcec74aa 100644 --- a/lib/Fuzzer/test/CMakeLists.txt +++ b/lib/Fuzzer/test/CMakeLists.txt @@ -231,5 +231,10 @@ configure_lit_site_cfg( add_lit_testsuite(check-fuzzer "Running Fuzzer tests" ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${TestBinaries} FileCheck sancov not ) + +# Don't add dependencies on Windows. The linker step would fail on Windows, +# since cmake will use link.exe for linking and won't include compiler-rt libs. +if(NOT MSVC) + add_dependencies(check-fuzzer FileCheck sancov not) +endif()