summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-09-26 13:38:02 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-26 10:38:02 -0700
commit88af9f783d956ecc05f494db8539c66f66ebfb26 (patch)
treef3e31bda0205b0fd598494fc217733e022fc5f75 /var
parent3282eaea8d58af201a0fb734ae545674ef4dec71 (diff)
downloadspack-88af9f783d956ecc05f494db8539c66f66ebfb26.tar.gz
spack-88af9f783d956ecc05f494db8539c66f66ebfb26.tar.bz2
spack-88af9f783d956ecc05f494db8539c66f66ebfb26.tar.xz
spack-88af9f783d956ecc05f494db8539c66f66ebfb26.zip
Make PETSc build on Darwin (#1835)
Don't set cpp when building on Darwin.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 1ad1eb6752..7ee2d29f4d 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -22,7 +22,9 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
+
import os
+import sys
from spack import *
@@ -90,8 +92,6 @@ class Petsc(Package):
def mpi_dependent_options(self):
if '~mpi' in self.spec:
compiler_opts = [
- '--with-cpp=cpp',
- '--with-cxxcpp=cpp',
'--with-cc=%s' % os.environ['CC'],
'--with-cxx=%s' % (os.environ['CXX']
if self.compiler.cxx is not None else '0'),
@@ -113,11 +113,14 @@ class Petsc(Package):
raise RuntimeError('\n'.join(errors))
else:
compiler_opts = [
- '--with-cpp=cpp',
- '--with-cxxcpp=cpp',
'--with-mpi=1',
'--with-mpi-dir=%s' % self.spec['mpi'].prefix,
]
+ if sys.platform != "darwin":
+ compiler_opts.extend([
+ '--with-cpp=cpp',
+ '--with-cxxcpp=cpp',
+ ])
return compiler_opts
def install(self, spec, prefix):