From: Stephen Hines Date: Tue, 29 Aug 2017 02:07:28 +0000 (+0000) Subject: Enable building LLVMgold.dll under mingw. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb99b8bba3dfb7e3a4b409b7b67ed8e39bfca80a;p=llvm Enable building LLVMgold.dll under mingw. 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 --- diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index a2ab1283808..86806140023 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -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)