]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] Remove dependencies for tests on Windows.
authorMarcos Pividori <mpividori@google.com>
Sun, 22 Jan 2017 01:27:34 +0000 (01:27 +0000)
committerMarcos Pividori <mpividori@google.com>
Sun, 22 Jan 2017 01:27:34 +0000 (01:27 +0000)
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

lib/Fuzzer/test/CMakeLists.txt

index 18e9e81f2fc130bb429f5420039f9fe9c1dc20fa..972dcec74aa52f14d5867e360b3952a5cdbaa385 100644 (file)
@@ -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()