Index: lib/Fuzzer/test/CMakeLists.txt =================================================================== --- lib/Fuzzer/test/CMakeLists.txt +++ lib/Fuzzer/test/CMakeLists.txt @@ -28,6 +28,9 @@ set(CMAKE_CXX_FLAGS "${LIBFUZZER_FLAGS_BASE} -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep -gline-tables-only") if(MSVC) + # Always use MD, since sanitizer coverage is currently not supported for MT. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MD") + # In order to use the sanitizers in Windows, we need to link against many # runtime libraries which will depend on the target being created # (executable or dll) and the c runtime library used (MT/MD).