Skip to content
Snippets Groups Projects
Commit a65519de authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #691 from davydden/petsc_remove_qunused

petsc: remove no longer needed -Qunused-arguments hack
parents 0ceb7c41 b909da75
Branches
Tags
No related merge requests found
...@@ -71,19 +71,10 @@ def mpi_dependent_options(self): ...@@ -71,19 +71,10 @@ def mpi_dependent_options(self):
errors = ['incompatible variants given'] + errors errors = ['incompatible variants given'] + errors
raise RuntimeError('\n'.join(errors)) raise RuntimeError('\n'.join(errors))
else: else:
if self.compiler.name == "clang": compiler_opts = [
compiler_opts = [ '--with-mpi=1',
'--with-mpi=1', '--with-mpi-dir=%s' % self.spec['mpi'].prefix,
'--with-cc=%s -Qunused-arguments' % join_path(self.spec['mpi'].prefix.bin, 'mpicc'), # Avoid confusing PETSc config by clang: warning: argument unused during compilation ]
'--with-cxx=%s -Qunused-arguments' % join_path(self.spec['mpi'].prefix.bin, 'mpic++'),
'--with-fc=%s' % join_path(self.spec['mpi'].prefix.bin, 'mpif90'),
'--with-f77=%s' % join_path(self.spec['mpi'].prefix.bin, 'mpif77'),
]
else:
compiler_opts = [
'--with-mpi=1',
'--with-mpi-dir=%s' % self.spec['mpi'].prefix,
]
return compiler_opts return compiler_opts
def install(self, spec, prefix): def install(self, spec, prefix):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment