From 20d5912855608a7f0d39a7b55fa1800ac3ff929f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 19 Feb 2018 15:50:10 +0100 Subject: [PATCH] - fix building with g++ 7 --- gcc7.patch | 10 ++++++++++ llvm.spec | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 gcc7.patch 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 + #include + #include ++#include + + // 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 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}, -- 2.43.0