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
a65519de
Commit
a65519de
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #691 from davydden/petsc_remove_qunused
petsc: remove no longer needed -Qunused-arguments hack
parents
0ceb7c41
b909da75
Branches
Branches containing commit
Tags
Tags containing commit
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
+4
-13
4 additions, 13 deletions
var/spack/repos/builtin/packages/petsc/package.py
with
4 additions
and
13 deletions
var/spack/repos/builtin/packages/petsc/package.py
+
4
−
13
View file @
a65519de
...
@@ -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
):
...
...
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