From 87512df699692ab80b7a93675feb8809bd0bb138 Mon Sep 17 00:00:00 2001 From: Robert Pavel Date: Thu, 4 Feb 2021 15:13:15 -0700 Subject: [PATCH] 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 --- .../repos/builtin/packages/miniamr/package.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/var/spack/repos/builtin/packages/miniamr/package.py b/var/spack/repos/builtin/packages/miniamr/package.py index 1eb11aab2d..90f130cc32 100644 --- a/var/spack/repos/builtin/packages/miniamr/package.py +++ b/var/spack/repos/builtin/packages/miniamr/package.py @@ -26,20 +26,14 @@ class Miniamr(MakefilePackage): version('1.4.1', sha256='dd8e8d9fd0768cb4f2c5d7fe6989dfa6bb95a8461f04deaccdbb50b0dd51e97a') version('1.4.0', sha256='f0b959c90416288c5ab51ed86b6ba49bc8a319006c2a74a070c94133267edc6f') - variant('mpi', default=True, description='Build with MPI support') - - depends_on('mpi', when="+mpi") + depends_on('mpi') @property def build_targets(self): targets = [] - if '+mpi' in self.spec: - targets.append('CC={0}'.format(self.spec['mpi'].mpicc)) - targets.append('LD={0}'.format(self.spec['mpi'].mpicc)) - targets.append('LDLIBS=-lm') - else: - targets.append('CC={0}'.format(self.compiler.cc)) - targets.append('LD={0}'.format(self.compiler.cc)) + targets.append('CC={0}'.format(self.spec['mpi'].mpicc)) + targets.append('LD={0}'.format(self.spec['mpi'].mpicc)) + targets.append('LDLIBS=-lm') targets.append('--directory=ref') return targets