diff options
author | Tobias Grosser <tobias@grosser.es> | 2014-03-03 19:30:19 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2014-03-03 19:30:19 +0000 |
commit | 23f16b1ceb332849e0817a07c328cc59abd01132 (patch) | |
tree | 8c3d99a125c44e311952ebb9dc1f0cfb53120b2c /polly/cmake | |
parent | d031fe9fcfd1e8003c0ee90e57c5e8b4ab65d145 (diff) | |
download | bcm5719-llvm-23f16b1ceb332849e0817a07c328cc59abd01132.tar.gz bcm5719-llvm-23f16b1ceb332849e0817a07c328cc59abd01132.zip |
cmake: build monolithic libLLVMPollyLib.dylib
The module LLVMPolly.so links to that. There is really no reason to build a
large number of mini-libraries here, especially as we do have dependences
between the libraries that are not properly handled and that make linking fail
on darwin.
Submitted-by: David Fang <fang@csl.cornell.edu>
llvm-svn: 202743
Diffstat (limited to 'polly/cmake')
-rw-r--r-- | polly/cmake/polly_macros.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/polly/cmake/polly_macros.cmake b/polly/cmake/polly_macros.cmake index 4171697d293..36a16a2f969 100644 --- a/polly/cmake/polly_macros.cmake +++ b/polly/cmake/polly_macros.cmake @@ -58,7 +58,18 @@ endmacro(add_polly_library) macro(add_polly_loadable_module name) set(srcs ${ARGN}) + # klduge: pass different values for MODULE with multiple targets in same dir + # this allows building shared-lib and module in same dir + # there must be a cleaner way to achieve this.... + if (MODULE) + else() + set(GLOBAL_NOT_MODULE TRUE) + endif() + set(MODULE TRUE) add_polly_library(${name} ${srcs}) + if (GLOBAL_NOT_MODULE) + unset (MODULE) + endif() if (APPLE) # Darwin-specific linker flags for loadable modules. set_target_properties(${name} PROPERTIES |