llvm: add conflicts for newer gcc (#24281)

Closes #24270
This commit is contained in:
Seth R. Johnson 2021-06-11 19:07:14 -04:00 committed by GitHub
parent 177750b215
commit 8b75e81666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:")