From: George Karpenkov Date: Fri, 4 Aug 2017 00:26:12 +0000 (+0000) Subject: Disable libFuzzer tests on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca0f9bbbd859e00abd64b97bd439310aae5f7a82;p=llvm Disable libFuzzer tests on Windows Differential Revision: https://reviews.llvm.org/D36297 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310009 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/CMakeLists.txt b/lib/Fuzzer/CMakeLists.txt index bc744890b99..423ae3d18b0 100644 --- a/lib/Fuzzer/CMakeLists.txt +++ b/lib/Fuzzer/CMakeLists.txt @@ -63,6 +63,14 @@ if ( LLVM_USE_SANITIZE_COVERAGE OR CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux" ) target_link_libraries(LLVMFuzzer ${LLVM_PTHREAD_LIB}) endif() -if( LLVM_USE_SANITIZE_COVERAGE AND LLVM_INCLUDE_TESTS ) - add_subdirectory(test) +if (MSVC) + + # Until bots are reconfigured, check-fuzzer on Windows is a no-OP. + add_custom_target(check-fuzzer) + add_custom_command(TARGET check-fuzzer + COMMAND cmake -E echo "check-fuzzer is disalbed on Windows") +else() + if( LLVM_USE_SANITIZE_COVERAGE AND LLVM_INCLUDE_TESTS ) + add_subdirectory(test) + endif() endif()