diff options
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt index 345362981af..7e849c6270d 100644 --- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt +++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt @@ -157,5 +157,7 @@ if(COMPILER_RT_INCLUDE_TESTS) add_subdirectory(tests) endif() -add_llvm_tool(sancov sancov.cc) -target_link_libraries(sancov LLVMSupport LLVMSymbolize LLVMObject LLVMDebugInfoDWARF LLVMDebugInfoPDB) +if (!MSVC) + add_llvm_tool(sancov sancov.cc) + target_link_libraries(sancov LLVMSupport LLVMSymbolize LLVMObject LLVMDebugInfoDWARF LLVMDebugInfoPDB) +endif() |

