From 6168b7fda85dcb8688102ff77d956d22146f0023 Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Sun, 24 Sep 2017 04:24:36 -0400 Subject: [PATCH] llvm: patch lldb for gcc-7 (#5239) --- var/spack/repos/builtin/packages/llvm/llvm_gcc7.patch | 10 ++++++++++ var/spack/repos/builtin/packages/llvm/package.py | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 var/spack/repos/builtin/packages/llvm/llvm_gcc7.patch diff --git a/var/spack/repos/builtin/packages/llvm/llvm_gcc7.patch b/var/spack/repos/builtin/packages/llvm/llvm_gcc7.patch new file mode 100644 index 0000000000..e3bb8a14ad --- /dev/null +++ b/var/spack/repos/builtin/packages/llvm/llvm_gcc7.patch @@ -0,0 +1,10 @@ +--- a/tools/lldb/include/lldb/Utility/TaskPool.h 2016-09-06 16:57:50.000000000 -0400 ++++ b/tools/lldb/include/lldb/Utility/TaskPool.h 2017-08-29 16:29:41.448584015 -0400 +@@ -28,6 +28,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index c9319cdcfc..5f3747271b 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -342,6 +342,9 @@ class Llvm(CMakePackage): conflicts('+clang_extra', when='~clang') conflicts('+lldb', when='~clang') + # Github issue #4986 + patch('llvm_gcc7.patch', when='@4.0.0:4.0.1+lldb %gcc@7.0:') + def setup_environment(self, spack_env, run_env): spack_env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)