Disabled Non-Existant miniamr~mpi Variant (#21495)

Identified build error for miniamr~mpi. Upon further investigation, the
MPI dependencies are hard coded in that tag
This commit is contained in:
Robert Pavel 2021-02-04 15:13:15 -07:00 committed by GitHub
parent 935ad53649
commit 87512df699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,20 +26,14 @@ class Miniamr(MakefilePackage):
version('1.4.1', sha256='dd8e8d9fd0768cb4f2c5d7fe6989dfa6bb95a8461f04deaccdbb50b0dd51e97a') version('1.4.1', sha256='dd8e8d9fd0768cb4f2c5d7fe6989dfa6bb95a8461f04deaccdbb50b0dd51e97a')
version('1.4.0', sha256='f0b959c90416288c5ab51ed86b6ba49bc8a319006c2a74a070c94133267edc6f') version('1.4.0', sha256='f0b959c90416288c5ab51ed86b6ba49bc8a319006c2a74a070c94133267edc6f')
variant('mpi', default=True, description='Build with MPI support') depends_on('mpi')
depends_on('mpi', when="+mpi")
@property @property
def build_targets(self): def build_targets(self):
targets = [] targets = []
if '+mpi' in self.spec:
targets.append('CC={0}'.format(self.spec['mpi'].mpicc)) targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
targets.append('LD={0}'.format(self.spec['mpi'].mpicc)) targets.append('LD={0}'.format(self.spec['mpi'].mpicc))
targets.append('LDLIBS=-lm') targets.append('LDLIBS=-lm')
else:
targets.append('CC={0}'.format(self.compiler.cc))
targets.append('LD={0}'.format(self.compiler.cc))
targets.append('--directory=ref') targets.append('--directory=ref')
return targets return targets