Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
88af9f78
Commit
88af9f78
authored
8 years ago
by
Erik Schnetter
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make PETSc build on Darwin (#1835)
Don't set cpp when building on Darwin.
parent
3282eaea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/petsc/package.py
+7
-4
7 additions, 4 deletions
var/spack/repos/builtin/packages/petsc/package.py
with
7 additions
and
4 deletions
var/spack/repos/builtin/packages/petsc/package.py
+
7
−
4
View file @
88af9f78
...
...
@@ -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 @@ def mpi_dependent_options(self):
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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment