diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-30 12:02:23 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-30 12:02:23 -0700 |
commit | a65519def0680a8aef33cb73b501a16199fe14af (patch) | |
tree | 0706855489e4bec53b1c8db3a14880cf38da97b9 /var | |
parent | 0ceb7c411bcebe7a3f22575be407789d542e1de9 (diff) | |
parent | b909da759d7b6d0443a97c13ba1c97118acd3e7a (diff) | |
download | spack-a65519def0680a8aef33cb73b501a16199fe14af.tar.gz spack-a65519def0680a8aef33cb73b501a16199fe14af.tar.bz2 spack-a65519def0680a8aef33cb73b501a16199fe14af.tar.xz spack-a65519def0680a8aef33cb73b501a16199fe14af.zip |
Merge pull request #691 from davydden/petsc_remove_qunused
petsc: remove no longer needed -Qunused-arguments hack
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index e9b7c8a732..5c1fc6cc92 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -71,19 +71,10 @@ class Petsc(Package): errors = ['incompatible variants given'] + errors raise RuntimeError('\n'.join(errors)) else: - if self.compiler.name == "clang": - compiler_opts = [ - '--with-mpi=1', - '--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, - ] + compiler_opts = [ + '--with-mpi=1', + '--with-mpi-dir=%s' % self.spec['mpi'].prefix, + ] return compiler_opts def install(self, spec, prefix): |