summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Pavel <rspavel@lanl.gov>2021-02-07 04:45:43 -0700
committerGitHub <noreply@github.com>2021-02-07 12:45:43 +0100
commit3387cefe1e3be61af8c211ee3374439519eb9572 (patch)
tree45b7865c24a268779e5e4ade28a9d570f1050666 /var
parentd5953d75bfb923dc2e61da8a8937012dab7c71d9 (diff)
downloadspack-3387cefe1e3be61af8c211ee3374439519eb9572.tar.gz
spack-3387cefe1e3be61af8c211ee3374439519eb9572.tar.bz2
spack-3387cefe1e3be61af8c211ee3374439519eb9572.tar.xz
spack-3387cefe1e3be61af8c211ee3374439519eb9572.zip
Fixed xsbench~mpi Spec (#21498)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xsbench/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/xsbench/package.py b/var/spack/repos/builtin/packages/xsbench/package.py
index 3f9831dbf2..da4e7263be 100644
--- a/var/spack/repos/builtin/packages/xsbench/package.py
+++ b/var/spack/repos/builtin/packages/xsbench/package.py
@@ -46,8 +46,10 @@ class Xsbench(MakefilePackage):
if '+mpi' in self.spec:
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
+ targets.append('MPI=yes')
else:
- targets.append('CC={0}'.format(self.compiler.cxx))
+ targets.append('CC={0}'.format(self.compiler.cc))
+ targets.append('MPI=no')
if '+openmp' in self.spec:
cflags += ' ' + self.compiler.openmp_flag