diff --git a/clang/tools/CMakeLists.txt b/clang/tools/CMakeLists.txt index 9a3512712a28a4..88e29412e54350 100644 --- a/clang/tools/CMakeLists.txt +++ b/clang/tools/CMakeLists.txt @@ -22,7 +22,7 @@ add_clang_subdirectory(c-index-test) add_clang_subdirectory(clang-refactor) # For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON. # Without that option resulting library is too close to 2^16 DLL exports limit. -if(UNIX OR (MINGW AND LLVM_LINK_LLVM_DYLIB)) +if(UNIX OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR (MINGW AND LLVM_LINK_LLVM_DYLIB)) add_clang_subdirectory(clang-shlib) endif()