diff options
author | Marcos Pividori <mpividori@google.com> | 2017-01-22 01:27:34 +0000 |
---|---|---|
committer | Marcos Pividori <mpividori@google.com> | 2017-01-22 01:27:34 +0000 |
commit | fb24f2257dd2e07b8ca28d6fbaed883a9ad75118 (patch) | |
tree | c1edf319122966b167607f238165479d709c8369 /llvm/lib/Fuzzer | |
parent | 3662f4efc9bfa17a59da44d56c7ec1a5de21c33a (diff) | |
download | bcm5719-llvm-fb24f2257dd2e07b8ca28d6fbaed883a9ad75118.tar.gz bcm5719-llvm-fb24f2257dd2e07b8ca28d6fbaed883a9ad75118.zip |
[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
llvm-svn: 292735
Diffstat (limited to 'llvm/lib/Fuzzer')
-rw-r--r-- | llvm/lib/Fuzzer/test/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/CMakeLists.txt b/llvm/lib/Fuzzer/test/CMakeLists.txt index 18e9e81f2fc..972dcec74aa 100644 --- a/llvm/lib/Fuzzer/test/CMakeLists.txt +++ b/llvm/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() |