diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -864,6 +864,7 @@ if(CLANG_BUILT_STANDALONE) llvm_distribution_add_targets() + process_llvm_pass_plugins() endif() configure_file( diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -1075,6 +1075,7 @@ # after all targets are created. include(LLVMDistributionSupport) llvm_distribution_add_targets() +process_llvm_pass_plugins() # This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_INSTALL_UCRT_LIBRARIES) @@ -1099,5 +1100,3 @@ if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) add_subdirectory(utils/llvm-locstats) endif() - -process_llvm_pass_plugins()