]> granicus.if.org Git - llvm/commitdiff
Enable building LLVMgold.dll under mingw.
authorStephen Hines <srhines@google.com>
Tue, 29 Aug 2017 02:07:28 +0000 (02:07 +0000)
committerStephen Hines <srhines@google.com>
Tue, 29 Aug 2017 02:07:28 +0000 (02:07 +0000)
Summary:
Plugins can (and should) be enabled under mingw if we are building
libLLVM.dll, so this is just a missed case. This allows LLVMgold.dll to
be built now under mingw.

Reviewers: llvm-commits, pirama, beanz, chapuni

Reviewed By: chapuni

Subscribers: chapuni, mgorny

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311973 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index a2ab12838083df3adbc580fc82b69075ae3aa074..868061400231e5198b289354fcde53607e6cc0e5 100644 (file)
@@ -792,7 +792,7 @@ endif()
 # Plugin support
 # FIXME: Make this configurable.
 if(WIN32 OR CYGWIN)
-  if(BUILD_SHARED_LIBS)
+  if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
     set(LLVM_ENABLE_PLUGINS ON)
   else()
     set(LLVM_ENABLE_PLUGINS OFF)