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
ed16bd13
Commit
ed16bd13
authored
9 years ago
by
Ben Boeckel
Committed by
Todd Gamblin
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
compiler: add "find" subcommand (#818)
And make "add" an alias to it. Fixes #713.
parent
22e4ee56
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
lib/spack/spack/cmd/compiler.py
+7
-6
7 additions, 6 deletions
lib/spack/spack/cmd/compiler.py
with
7 additions
and
6 deletions
lib/spack/spack/cmd/compiler.py
+
7
−
6
View file @
ed16bd13
...
...
@@ -44,10 +44,10 @@ def setup_parser(subparser):
scopes
=
spack
.
config
.
config_scopes
#
Ad
d
ad
d_parser
=
sp
.
add_parser
(
'
add
'
,
help
=
'
Add
compilers to the Spack configuration.
'
)
ad
d_parser
.
add_argument
(
'
add_paths
'
,
nargs
=
argparse
.
REMAINDER
)
ad
d_parser
.
add_argument
(
'
--scope
'
,
choices
=
scopes
,
default
=
spack
.
cmd
.
default_modify_scope
,
#
Fin
d
fin
d_parser
=
sp
.
add_parser
(
'
find
'
,
aliases
=
[
'
add
'
]
,
help
=
'
Search the system for
compilers to
add to
the Spack configuration.
'
)
fin
d_parser
.
add_argument
(
'
add_paths
'
,
nargs
=
argparse
.
REMAINDER
)
fin
d_parser
.
add_argument
(
'
--scope
'
,
choices
=
scopes
,
default
=
spack
.
cmd
.
default_modify_scope
,
help
=
"
Configuration scope to modify.
"
)
# Remove
...
...
@@ -70,7 +70,7 @@ def setup_parser(subparser):
help
=
"
Configuration scope to read from.
"
)
def
compiler_
ad
d
(
args
):
def
compiler_
fin
d
(
args
):
"""
Search either $PATH or a list of paths for compilers and add them
to Spack
'
s configuration.
"""
paths
=
args
.
add_paths
...
...
@@ -136,7 +136,8 @@ def compiler_list(args):
def
compiler
(
parser
,
args
):
action
=
{
'
add
'
:
compiler_add
,
action
=
{
'
add
'
:
compiler_find
,
'
find
'
:
compiler_find
,
'
remove
'
:
compiler_remove
,
'
rm
'
:
compiler_remove
,
'
info
'
:
compiler_info
,
...
...
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