summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-10-30 00:54:26 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-10-30 00:54:26 +0000
commitea9dca4c6cbb3299810fa41fb971b96dc63597c9 (patch)
tree4a601f49e526de4176621ad6ef8fa04ce241c070 /llvm/tools
parentc00d5b970629c5e43afc1d14d65c7b219aa79174 (diff)
downloadbcm5719-llvm-ea9dca4c6cbb3299810fa41fb971b96dc63597c9.tar.gz
bcm5719-llvm-ea9dca4c6cbb3299810fa41fb971b96dc63597c9.zip
Add polly support to the build system.
Update the cmake and autoconf build system to compile polly as a shared library if it is checked out into tools/polly. In case polly is not checked out, nothing changes. This models the way clang can be added to llvm if checked out to tools/clang. Also rebuild configure. Patch contributed by ether. llvm-svn: 117755
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/CMakeLists.txt8
-rw-r--r--llvm/tools/Makefile4
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index 7ed10e9729d..89d858c4e74 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/tools/CMakeLists.txt
@@ -2,6 +2,14 @@
# large and three small executables. This is done to minimize memory load
# in parallel builds. Please retain this ordering.
+# If polly exists and is not disabled compile it and add it to the LLVM tools.
+option(LLVM_BUILD_POLLY "Compile polly" ON)
+if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/polly/CMakeLists.txt )
+ if (LLVM_BUILD_POLLY)
+ add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/polly)
+ endif (LLVM_BUILD_POLLY)
+endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/polly/CMakeLists.txt )
+
if( NOT WIN32 OR MSYS OR CYGWIN )
# It is useful to build llvm-config before the other tools, so we
# have a fresh LibDeps.txt for regenerating the hard-coded library
diff --git a/llvm/tools/Makefile b/llvm/tools/Makefile
index aa07a2b1b77..84ffa064ae6 100644
--- a/llvm/tools/Makefile
+++ b/llvm/tools/Makefile
@@ -57,4 +57,8 @@ ifeq ($(ENABLE_PIC),1)
endif
endif
+ifdef LLVM_HAS_POLLY
+ PARALLEL_DIRS += polly
+endif
+
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud