Skip to content

Commit

Permalink
[CMake] Enable loadable modules, aka plugins, with BUILD_SHARED_LIBS …
Browse files Browse the repository at this point in the history
…on cygming.

Loadable modules could be enabled without BUILD_SHARED_LIBS with tweaks in future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212907 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Jul 13, 2014
1 parent 4a8dd7c commit d74d9b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit d74d9b3

Please sign in to comment.