From: Jan Rękorajski Date: Mon, 19 Feb 2018 14:50:10 +0000 (+0100) Subject: - fix building with g++ 7 X-Git-Tag: auto/th/llvm-3.9.1-4~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fllvm.git;a=commitdiff_plain;h=20d5912855608a7f0d39a7b55fa1800ac3ff929f - fix building with g++ 7 --- 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},