Fixed xsbench~mpi Spec (#21498)

This commit is contained in:
Robert Pavel
2021-02-07 04:45:43 -07:00
committed by GitHub
parent d5953d75bf
commit 3387cefe1e

View File

@@ -46,8 +46,10 @@ def build_targets(self):
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