Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -451,6 +451,10 @@ option(CLANG_BUILD_TOOLS "Build the Clang tools. If OFF, just generate build targets." ON) +if (UNIX) + option(CLANG_ENABLE_SHLIB "Build combined clang dynamic library." ON) +endif() + option(CLANG_ENABLE_ARCMT "Build ARCMT." ON) option(CLANG_ENABLE_STATIC_ANALYZER "Build static analyzer." ON) Index: tools/CMakeLists.txt =================================================================== --- tools/CMakeLists.txt +++ tools/CMakeLists.txt @@ -14,7 +14,7 @@ add_clang_subdirectory(clang-rename) add_clang_subdirectory(clang-refactor) -if(UNIX) +if(UNIX AND CLANG_ENABLE_SHLIB) add_clang_subdirectory(clang-shlib) endif()