llvm: patch for gcc-11 (#28547)
* llvm: patch for gcc-11 - added llvm-gcc11.patch - adjusted version constraints on existing missing-includes patch. * remove unnecessary comment Co-authored-by: Tom Scogland <scogland1@llnl.gov>
This commit is contained in:
parent
fa8c9e4939
commit
22b7d9cf67
9
var/spack/repos/builtin/packages/llvm/llvm-gcc11.patch
Normal file
9
var/spack/repos/builtin/packages/llvm/llvm-gcc11.patch
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
--- a/llvm/utils/benchmark/src/benchmark_register.h
|
||||||
|
+++ b/llvm/utils/benchmark/src/benchmark_register.h
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
#define BENCHMARK_REGISTER_H
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
+#include <limits>
|
||||||
|
|
||||||
|
#include "check.h"
|
@ -310,7 +310,7 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
patch('sanitizer-ipc_perm_mode.patch', when="@5:9+compiler-rt%gcc@9:")
|
patch('sanitizer-ipc_perm_mode.patch', when="@5:9+compiler-rt%gcc@9:")
|
||||||
|
|
||||||
# github.com/spack/spack/issues/24270: MicrosoftDemangle for %gcc@10: and %clang@13:
|
# github.com/spack/spack/issues/24270: MicrosoftDemangle for %gcc@10: and %clang@13:
|
||||||
patch('missing-includes.patch', when='@8:9')
|
patch('missing-includes.patch', when='@8')
|
||||||
|
|
||||||
# Backport from llvm master + additional fix
|
# Backport from llvm master + additional fix
|
||||||
# see https://bugs.llvm.org/show_bug.cgi?id=39696
|
# see https://bugs.llvm.org/show_bug.cgi?id=39696
|
||||||
@ -342,6 +342,8 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
patch('no_cyclades.patch', when='@10:12.0.0')
|
patch('no_cyclades.patch', when='@10:12.0.0')
|
||||||
patch('no_cyclades9.patch', when='@6:9')
|
patch('no_cyclades9.patch', when='@6:9')
|
||||||
|
|
||||||
|
patch('llvm-gcc11.patch', when='@9:11%gcc@11:')
|
||||||
|
|
||||||
# Add LLVM_VERSION_SUFFIX
|
# Add LLVM_VERSION_SUFFIX
|
||||||
# https://reviews.llvm.org/D115818
|
# https://reviews.llvm.org/D115818
|
||||||
patch('llvm-version-suffix-macro.patch', when='@:13.0.0')
|
patch('llvm-version-suffix-macro.patch', when='@:13.0.0')
|
||||||
|
Loading…
Reference in New Issue
Block a user