diff options
author | Matthias Diener <mdiener@illinois.edu> | 2022-04-04 04:49:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 09:49:15 +0000 |
commit | b9cdc7ed551d906bddd53879f977621c6cc4eea4 (patch) | |
tree | d6abec1dd1cd0303f69c971809a272d6bb084253 /var | |
parent | fbf50fbfa856cbf67855320971738647257eb897 (diff) | |
download | spack-b9cdc7ed551d906bddd53879f977621c6cc4eea4.tar.gz spack-b9cdc7ed551d906bddd53879f977621c6cc4eea4.tar.bz2 spack-b9cdc7ed551d906bddd53879f977621c6cc4eea4.tar.xz spack-b9cdc7ed551d906bddd53879f977621c6cc4eea4.zip |
charmpp: avoid setting MPICC for mpi backend (#23645)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/charmpp/package.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/charmpp/package.py b/var/spack/repos/builtin/packages/charmpp/package.py index 35d1e7b950..6d8bda0f37 100644 --- a/var/spack/repos/builtin/packages/charmpp/package.py +++ b/var/spack/repos/builtin/packages/charmpp/package.py @@ -370,10 +370,11 @@ class Charmpp(Package): 'test', 'TESTOPTS=++local', parallel=False) def setup_dependent_build_environment(self, env, dependent_spec): - env.set('MPICC', self.prefix.bin.ampicc) - env.set('MPICXX', self.prefix.bin.ampicxx) - env.set('MPIF77', self.prefix.bin.ampif77) - env.set('MPIF90', self.prefix.bin.ampif90) + 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) + env.set('MPIF90', self.prefix.bin.ampif90) def setup_dependent_package(self, module, dependent_spec): self.spec.mpicc = self.prefix.bin.ampicc |