From aae6739823f52cbbd850688b59352f15951a79ec Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 13 Jul 2014 13:47:37 +0000 Subject: [PATCH] [CMake] Enable loadable modules, aka plugins, with BUILD_SHARED_LIBS on cygming. Loadable modules could be enabled without BUILD_SHARED_LIBS with tweaks in future. llvm-svn: 212907 --- cmake/modules/HandleLLVMOptions.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index b8577f70666..27a126c8cb3 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -411,8 +411,11 @@ endif() # Plugin support # FIXME: Make this configurable. if(WIN32 OR CYGWIN) - # DLL platform(s) don't support plugins. - set(LLVM_ENABLE_PLUGINS OFF) + if(BUILD_SHARED_LIBS) + set(LLVM_ENABLE_PLUGINS ON) + else() + set(LLVM_ENABLE_PLUGINS OFF) + endif() else() set(LLVM_ENABLE_PLUGINS ON) endif()