These are needed to avoid undefined symbols which aren't satisfied
by Clang itself.
Differential Revision: https://reviews.llvm.org/D62174
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361340
91177308-0d34-0410-b5e6-
96231b3b80d8
# Plugin support
# FIXME: Make this configurable.
-if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
- set(LLVM_ENABLE_PLUGINS ON)
+if(WIN32 OR CYGWIN)
+ if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
+ set(LLVM_ENABLE_PLUGINS ON)
+ else()
+ set(LLVM_ENABLE_PLUGINS OFF)
+ endif()
else()
- set(LLVM_ENABLE_PLUGINS OFF)
+ set(LLVM_ENABLE_PLUGINS ON)
endif()
# By default we should enable LLVM_ENABLE_IDE only for multi-configuration