[llvm] r212907 - [CMake] Enable loadable modules, aka plugins, with BUILD_SHARED_LIBS on cygming.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Jul 13 06:47:37 PDT 2014
Author: chapuni
Date: Sun Jul 13 08:47:37 2014
New Revision: 212907
URL: http://llvm.org/viewvc/llvm-project?rev=212907&view=rev
Log:
[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.
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=212907&r1=212906&r2=212907&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Sun Jul 13 08:47:37 2014
@@ -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()
More information about the llvm-commits
mailing list