Index: llvm/trunk/lib/Fuzzer/test/CMakeLists.txt =================================================================== --- llvm/trunk/lib/Fuzzer/test/CMakeLists.txt +++ llvm/trunk/lib/Fuzzer/test/CMakeLists.txt @@ -231,5 +231,10 @@ 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()