[packages/llvm] - fix building with g++ 7
baggins
baggins at pld-linux.org
Mon Feb 19 15:50:24 CET 2018
commit 20d5912855608a7f0d39a7b55fa1800ac3ff929f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Feb 19 15:50:10 2018 +0100
- fix building with g++ 7
gcc7.patch | 10 ++++++++++
llvm.spec | 2 ++
2 files changed, 12 insertions(+)
---
diff --git a/llvm.spec b/llvm.spec
index 2e5359a..a6ca9a3 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -50,6 +50,7 @@ Patch3: x32-gcc-toolchain.patch
Patch4: cmake-buildtype.patch
Patch5: %{name}-ocaml-shared.patch
Patch6: D35246.diff
+Patch7: gcc7.patch
URL: http://llvm.org/
BuildRequires: bash
BuildRequires: bison
@@ -508,6 +509,7 @@ Dokumentacja HTML wiązania OCamla do LLVM-a.
%patch4 -p1
%patch5 -p1
%patch6 -p0
+%patch7 -p1
grep -rl /usr/bin/env tools utils | xargs sed -i -e '1{
s,^#!.*bin/env python,#!%{__python},
diff --git a/gcc7.patch b/gcc7.patch
new file mode 100644
index 0000000..f300225
--- /dev/null
+++ b/gcc7.patch
@@ -0,0 +1,10 @@
+--- llvm-3.9.1.src/tools/lldb/include/lldb/Utility/TaskPool.h~ 2015-11-03 23:29:20.000000000 +0100
++++ llvm-3.9.1.src/tools/lldb/include/lldb/Utility/TaskPool.h 2018-02-19 15:48:34.116275467 +0100
+@@ -33,6 +33,7 @@
+ #include <queue>
+ #include <thread>
+ #include <vector>
++#include <functional>
+
+ // Global TaskPool class for running tasks in parallel on a set of worker thread created the first
+ // time the task pool is used. The TaskPool provide no gurantee about the order the task will be run
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/20d5912855608a7f0d39a7b55fa1800ac3ff929f
More information about the pld-cvs-commit
mailing list