[packages/llvm] - adjusted polly-update patch, enabled pluto support in polly
qboosh
qboosh at pld-linux.org
Mon Oct 6 21:41:48 CEST 2014
commit 3eca6fe95af2705e3402a139c877bff243d69071
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Oct 6 21:42:04 2014 +0200
- adjusted polly-update patch, enabled pluto support in polly
llvm-polly-update.patch | 11 +++++++++++
llvm.spec | 15 +++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index 8d90fb0..d9a7b55 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -83,9 +83,8 @@ BuildRequires: cloog-isl-devel
BuildRequires: gmp-devel
BuildRequires: isl-devel >= 0.13
# optional
+BuildRequires: pluto-devel
BuildRequires: scoplib-devel >= 0.2.1-2
-# optional
-#BuildRequires: libpluto-devel
#cuda-devel
%endif
Requires: %{name}-libs = %{version}-%{release}
@@ -381,8 +380,8 @@ mv clang-tools-extra-%{version}.src tools/clang/tools/extra
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-%patch4 -p1
+%{?with_polly:%patch3 -p1}
+%{?with_lldb:%patch4 -p1}
# configure does not properly specify libdir
%{__sed} -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}|g' Makefile.config.in
@@ -403,6 +402,14 @@ cd autoconf
%{__autoconf} -o ../configure configure.ac
cd ..
%{__autoheader} -I autoconf -I autoconf/m4 autoconf/configure.ac
+%if %{with polly}
+cd tools/polly/autoconf
+%{__aclocal} -I m4 -I ../../../autoconf/m4
+%{__autoconf} -o ../configure configure.ac
+cd ..
+%{__autoheader} -I autoconf -I autoconf/m4 -I ../../../autoconf/m4 autoconf/configure.ac
+cd ../..
+%endif
# Disabling assertions now, rec. by pure and needed for OpenGTL
# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
diff --git a/llvm-polly-update.patch b/llvm-polly-update.patch
index aaa6f41..e7c2f5f 100644
--- a/llvm-polly-update.patch
+++ b/llvm-polly-update.patch
@@ -39,3 +39,14 @@
}
}
+--- llvm-3.5.0.src/tools/polly/autoconf/configure.ac.orig 2014-04-11 11:47:45.000000000 +0200
++++ llvm-3.5.0.src/tools/polly/autoconf/configure.ac 2014-10-06 16:37:55.052037462 +0200
+@@ -93,7 +93,7 @@
+
+ dnl Check that we have libpluto.
+ saved_CXXFLAGS=$CXXFLAGS
+-CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc"
++CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc -std=c++0x"
+ find_lib_and_headers([pluto], [pluto/libpluto.h], [pluto])
+ CXXFLAGS=$saved_CXXFLAGS
+ AS_IF([test "x$pluto_found" = "xyes"],
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/3eca6fe95af2705e3402a139c877bff243d69071
More information about the pld-cvs-commit
mailing list