diff options
| author | serge-sans-paille <sguelton@redhat.com> | 2020-02-12 08:57:19 +0100 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2020-06-17 16:57:30 -0700 |
| commit | f14919564d8586afac9ab6b5cfe2ff99b0be2f3d (patch) | |
| tree | b44570a45cd349ee3ef6ff52893b9f7436bd6499 | |
| parent | 783f5c6c5e2a44d5b66f8277ff5917fdb6b455c6 (diff) | |
| download | bcm5719-llvm-f14919564d8586afac9ab6b5cfe2ff99b0be2f3d.tar.gz bcm5719-llvm-f14919564d8586afac9ab6b5cfe2ff99b0be2f3d.zip | |
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 d21664cce1db8debe2528f36b1fbd2b8af9c9401)
| -rw-r--r-- | clang/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | llvm/CMakeLists.txt | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 781c3eb7f2f..dc1413f4b59 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 bc45df7a3ac..7838e9b190c 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -1069,6 +1069,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) @@ -1093,5 +1094,3 @@ endif() if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) add_subdirectory(utils/llvm-locstats) endif() - -process_llvm_pass_plugins() |

