Skip to content

Commit f149195

Browse files
serge-sans-pailletstellar
serge-sans-paille
authored andcommitted
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 (cherry picked from commit d21664c)
1 parent 783f5c6 commit f149195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ add_subdirectory(utils/hmaptool)
864864

865865
if(CLANG_BUILT_STANDALONE)
866866
llvm_distribution_add_targets()
867+
process_llvm_pass_plugins()
867868
endif()
868869

869870
configure_file(

llvm/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ endif()
10691069
# after all targets are created.
10701070
include(LLVMDistributionSupport)
10711071
llvm_distribution_add_targets()
1072+
process_llvm_pass_plugins()
10721073

10731074
# This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake
10741075
if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_INSTALL_UCRT_LIBRARIES)
@@ -1093,5 +1094,3 @@ endif()
10931094
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
10941095
add_subdirectory(utils/llvm-locstats)
10951096
endif()
1096-
1097-
process_llvm_pass_plugins()

0 commit comments

Comments
 (0)