From 220486cac8347151b13242804aaeac8d3aab25ed Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Tue, 29 Aug 2017 02:07:28 +0000 Subject: [PATCH] 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 llvm-svn: 311973 --- cmake/modules/HandleLLVMOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)