From 3387cefe1e3be61af8c211ee3374439519eb9572 Mon Sep 17 00:00:00 2001 From: Robert Pavel Date: Sun, 7 Feb 2021 04:45:43 -0700 Subject: Fixed xsbench~mpi Spec (#21498) --- var/spack/repos/builtin/packages/xsbench/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2