Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-02-04 23:55:43 +0300
committerTobias Grosser <tobias@grosser.es>2015-02-04 23:55:43 +0300
commit52a25237d894fd5736a90f11df2c5c9391d13fd5 (patch)
tree2b0e65b1e1de52b56aaa9b04999fe6223d1a7b0f /polly/Makefile.config.in
parentb6472fe3da9a20bcceb7b24af4ce9f0c4e79b254 (diff)
Import isl(+imath) as an external library into Polly
With this patch Polly is always GPL-free (no dependency on GMP any more). As a result, building and distributing Polly will be easier. Furthermore, there is no need to tightly coordinate isl and Polly releases anymore. We import isl b3e0fa7a05d as well as imath 4d707e5ef2. These are the git versions Polly currently was tested with when using utils/checkout_isl.sh. The imported libraries are both MIT-style licensed. We build isl and imath with -fvisibility=hidden to avoid clashes in case other projects (such as gcc) use conflicting versions of isl. The use of imath can temporarily reduce compile-time performance of Polly. We will work on performance tuning in tree. Patches to isl should be contributed first to the main isl repository and can then later be reimported to Polly. This patch is also a prerequisite for the upcoming isl C++ interface. llvm-svn: 228193
Diffstat (limited to 'polly/Makefile.config.in')
-rw-r--r--polly/Makefile.config.in27
1 files changed, 22 insertions, 5 deletions
diff --git a/polly/Makefile.config.in b/polly/Makefile.config.in
index c84be0baea7e..fed157a3f28c 100644
--- a/polly/Makefile.config.in
+++ b/polly/Makefile.config.in
@@ -28,13 +28,30 @@ endif
POLLY_CXXFLAGS += "-fno-rtti -fno-exceptions"
+# Define the FLAGS for the compilation of isl and imath
+#
+# Those are the only C files we have in the repository. Hence, we can just use
+# the CFLAGS to identify them.
+#
+# We first set the visibility of all isl functions to hidden to ensure we do
+# not clash with other isl versions that got linked into a program that uses
+# Polly. (This happens e.g when linking Polly with dragonegg)
+#
+# We also disable all warnings, as these should be fixed upstream. There is
+# no value in reporting them here.
+POLLY_CFLAGS := -fvisibility=hidden
+POLLY_CFLAGS += -w
+
PLUTO_FOUND := @pluto_found@
CUDALIB_FOUND := @cuda_found@
-# Set include directroys
-POLLY_INC := @gmp_inc@ @isl_inc@ @cuda_inc@\
- @pluto_inc@ -I$(POLLY_SRC_ROOT)/lib/JSON/include
+# Set include directories
+POLLY_INC := @cuda_inc@ \
+ @pluto_inc@ -I$(POLLY_SRC_ROOT)/lib/JSON/include \
+ -I$(POLLY_SRC_ROOT)/lib/External/isl/include \
+ -I$(POLLY_SRC_ROOT)/lib/External/isl/imath \
+ -I$(POLLY_SRC_ROOT)/lib/External/isl
-POLLY_LD := @gmp_ld@ @isl_ld@ @cuda_ld@ @pluto_ld@
+POLLY_LD := @cuda_ld@ @pluto_ld@
-POLLY_LIB := @gmp_lib@ @isl_lib@ @cuda_lib@ @pluto_lib@
+POLLY_LIB := @cuda_lib@ @pluto_lib@