Skip to content

Commit

Permalink
Fix integration of pass plugins with llvm dylib
Browse files Browse the repository at this point in the history
Call llvm_process_pass_plugin from clang when in standalone mode.

Differential Revision: https://reviews.llvm.org/D74464
  • Loading branch information
serge-sans-paille committed Feb 13, 2020
1 parent e8f8873 commit d21664c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions clang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ add_subdirectory(utils/hmaptool)

if(CLANG_BUILT_STANDALONE)
llvm_distribution_add_targets()
process_llvm_pass_plugins()
endif()

configure_file(
Expand Down
3 changes: 1 addition & 2 deletions llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,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)
Expand All @@ -1099,5 +1100,3 @@ endif()
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
add_subdirectory(utils/llvm-locstats)
endif()

process_llvm_pass_plugins()

0 comments on commit d21664c

Please sign in to comment.