1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[Analysis] Link library dependencies to Analysis plugins

These are needed to avoid undefined symbols which aren't satisfied
by Clang itself.

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

llvm-svn: 361340
This commit is contained in:
Petr Hosek 2019-05-22 00:47:37 +00:00
parent 6fefd36682
commit cd0eede62b

View File

@ -914,10 +914,14 @@ endif()
# Plugin support # Plugin support
# FIXME: Make this configurable. # FIXME: Make this configurable.
if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB) if(WIN32 OR CYGWIN)
set(LLVM_ENABLE_PLUGINS ON) if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
set(LLVM_ENABLE_PLUGINS ON)
else()
set(LLVM_ENABLE_PLUGINS OFF)
endif()
else() else()
set(LLVM_ENABLE_PLUGINS OFF) set(LLVM_ENABLE_PLUGINS ON)
endif() endif()
# By default we should enable LLVM_ENABLE_IDE only for multi-configuration # By default we should enable LLVM_ENABLE_IDE only for multi-configuration