From: serge-sans-paille Date: Wed, 12 Feb 2020 07:57:19 +0000 (+0100) Subject: [PATCH] Fix integration of pass plugins with llvm dylib X-Git-Tag: archive/raspbian/1%10.0.0-4+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=88e726f6d951a20dba67cfcf2c39690fc837d5ab;p=llvm-toolchain-10.git [PATCH] Fix integration of pass plugins with llvm dylib Call llvm_process_pass_plugin from clang when in standalone mode. Differential Revision: https://reviews.llvm.org/D74464 Gbp-Pq: Name d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch --- diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 781c3eb7f..dc1413f4b 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -864,6 +864,7 @@ add_subdirectory(utils/hmaptool) 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 index c271e99da..a7f1db07b 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -1067,6 +1067,7 @@ endif() # 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) @@ -1091,5 +1092,3 @@ endif() if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) add_subdirectory(utils/llvm-locstats) endif() - -process_llvm_pass_plugins()