summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharalmha <47558670+haralmha@users.noreply.github.com>2022-07-25 11:39:12 +0200
committerGitHub <noreply@github.com>2022-07-25 11:39:12 +0200
commitbf838fe15f1654c11d5fcac2b52b7fa7219ff977 (patch)
tree2734453e8fc8c6ea7cf3b154ada5e3ce9243e211
parentb56871dd9c5ea8821833ed9148f00b186b4d0b19 (diff)
downloadspack-bf838fe15f1654c11d5fcac2b52b7fa7219ff977.tar.gz
spack-bf838fe15f1654c11d5fcac2b52b7fa7219ff977.tar.bz2
spack-bf838fe15f1654c11d5fcac2b52b7fa7219ff977.tar.xz
spack-bf838fe15f1654c11d5fcac2b52b7fa7219ff977.zip
llvm: Add missing include for version range 8 to 11 (#31639)
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index c4ff8fb7af..91e928cead 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -369,6 +369,11 @@ class Llvm(CMakePackage, CudaPackage):
# make libflags a list in openmp subproject when ~omp_as_runtime
patch('libomp-libflags-as-list.patch', when='@3.7:14')
+ # Add missing include leading to build fail with clang
+ patch('https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1.patch?full_index=1',
+ sha256='514926d661635de47972c7d403c9c4669235aa51e22e56d44676d2a2709179b6',
+ when='@8:11')
+
# The functions and attributes below implement external package
# detection for LLVM. See:
#