diff options
author | Martin Aumüller <aumuell@reserv.at> | 2023-06-26 15:42:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 15:42:25 +0200 |
commit | 501bb88de2b6312ba713116849eb5a3f84f1edaf (patch) | |
tree | c495939202ee64de256031fc4fe4969e6088f9fa /var | |
parent | c5adb05433ac8cd271775e5da8153d1e3eb9726e (diff) | |
download | spack-501bb88de2b6312ba713116849eb5a3f84f1edaf.tar.gz spack-501bb88de2b6312ba713116849eb5a3f84f1edaf.tar.bz2 spack-501bb88de2b6312ba713116849eb5a3f84f1edaf.tar.xz spack-501bb88de2b6312ba713116849eb5a3f84f1edaf.zip |
llvm: fix build against libstdc++ 13 (#38329)
llvm @13-15 is required for ispc, but fails to build with GCC 13.
14.0.6 and 15.0.7 built successfully with upstream patch, 13.0.1
still fails. Thus upstream patch is applied to 14 and 15 only.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/llvm/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 28ce8ca9c1..9b537df57a 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -402,6 +402,13 @@ class Llvm(CMakePackage, CudaPackage): sha256="514926d661635de47972c7d403c9c4669235aa51e22e56d44676d2a2709179b6", when="@8:11", ) + # + # fix compilation against libstdc++13 + patch( + "https://github.com/llvm/llvm-project/commit/1b4fdf18bc2aaa2d46bf072475dd9cbcd44a9fee.patch?full_index=1", + sha256="82481418766b4b949ea808d956ff3800b9a241a576370114862428bb0e25ee1f", + when="@14:15", + ) # fix building of older versions of llvm with newer versions of glibc for compiler_rt_as in ["project", "runtime"]: |