Skip to content

Commit d21664c

Browse files
author
serge-sans-paille
committed
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
1 parent e8f8873 commit d21664c

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
@@ -1075,6 +1075,7 @@ endif()
10751075
# after all targets are created.
10761076
include(LLVMDistributionSupport)
10771077
llvm_distribution_add_targets()
1078+
process_llvm_pass_plugins()
10781079

10791080
# This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake
10801081
if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_INSTALL_UCRT_LIBRARIES)
@@ -1099,5 +1100,3 @@ endif()
10991100
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
11001101
add_subdirectory(utils/llvm-locstats)
11011102
endif()
1102-
1103-
process_llvm_pass_plugins()

0 commit comments

Comments
 (0)