Compiler conflict in umpire as a range (#26161)

This commit is contained in:
Harmen Stoppels 2021-09-26 12:28:30 +02:00 committed by GitHub
parent fbda52d1b0
commit e76462da38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,10 @@ class Umpire(CachedCMakePackage, CudaPackage, ROCmPackage):
conflicts('+shared', when='+cuda') conflicts('+shared', when='+cuda')
# https://github.com/LLNL/Umpire/issues/653 # https://github.com/LLNL/Umpire/issues/653
conflicts('%gcc@10.3.0', when='+cuda') # This range looks weird, but it ensures the concretizer looks at it as a
# range, not as a concrete version, so that it also matches compilers
# specified as `gcc@10.3.0-identifier`. See #8957.
conflicts('%gcc@10.3.0:10.3.0.0', when='+cuda')
def _get_sys_type(self, spec): def _get_sys_type(self, spec):
sys_type = spec.architecture sys_type = spec.architecture