[PATCH] Fix integration of pass plugins with llvm dylib
authorserge-sans-paille <sguelton@redhat.com>
Wed, 12 Feb 2020 07:57:19 +0000 (08:57 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 24 Mar 2020 16:37:07 +0000 (16:37 +0000)
Call llvm_process_pass_plugin from clang when in standalone mode.

Differential Revision: https://reviews.llvm.org/D74464

Gbp-Pq: Name d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch

clang/CMakeLists.txt
llvm/CMakeLists.txt

index 781c3eb7f2f27feee984a0a4e8b97ae446d73e2f..dc1413f4b597209a250998759711af776f8165df 100644 (file)
@@ -864,6 +864,7 @@ add_subdirectory(utils/hmaptool)
 
 if(CLANG_BUILT_STANDALONE)
   llvm_distribution_add_targets()
+  process_llvm_pass_plugins()
 endif()
 
 configure_file(
index c271e99daca6e19d445d751243bf6cfd79493a72..a7f1db07bf6fe83104dadd1f96ecf04607eb5611 100644 (file)
@@ -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()