summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2021-06-11 19:07:14 -0400
committerGitHub <noreply@github.com>2021-06-11 17:07:14 -0600
commit8b75e8166698fef6e909750a626bea64afe4d641 (patch)
tree0ac7c0a755fbd27b96d580ab79c5dbb92468aed9
parent177750b215c07b9264cdf8562bd78bfc12072664 (diff)
downloadspack-8b75e8166698fef6e909750a626bea64afe4d641.tar.gz
spack-8b75e8166698fef6e909750a626bea64afe4d641.tar.bz2
spack-8b75e8166698fef6e909750a626bea64afe4d641.tar.xz
spack-8b75e8166698fef6e909750a626bea64afe4d641.zip
llvm: add conflicts for newer gcc (#24281)
Closes #24270
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index d7adbddd72..b1fa6084a7 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -187,7 +187,8 @@ class Llvm(CMakePackage, CudaPackage):
# Introduced in version 11 as a part of LLVM and not a separate package.
conflicts("+flang", when="@:10.999")
- # LLVM 4 and 5 does not build with GCC 8
+ # Older LLVM do not build with newer GCC
+ conflicts("%gcc@11:", when="@:10")
conflicts("%gcc@8:", when="@:5")
conflicts("%gcc@:5.0.999", when="@8:")