OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a8dd7c
)
[CMake] Enable loadable modules, aka plugins, with BUILD_SHARED_LIBS on cygming.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 13 Jul 2014 13:47:37 +0000
(13:47 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 13 Jul 2014 13:47:37 +0000
(13:47 +0000)
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
cmake/modules/HandleLLVMOptions.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/HandleLLVMOptions.cmake
b/cmake/modules/HandleLLVMOptions.cmake
index
b8577f7
..
27a126c
100644
(file)
--- 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()