charmpp: avoid setting MPICC for mpi backend (#23645)

This commit is contained in:
Matthias Diener 2022-04-04 04:49:15 -05:00 committed by GitHub
parent fbf50fbfa8
commit b9cdc7ed55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,7 @@ def check_build(self):
'test', 'TESTOPTS=++local', parallel=False)
def setup_dependent_build_environment(self, env, dependent_spec):
if not self.spec.satisfies("backend=mpi"):
env.set('MPICC', self.prefix.bin.ampicc)
env.set('MPICXX', self.prefix.bin.ampicxx)
env.set('MPIF77', self.prefix.bin.ampif77)