Skip to content
Snippets Groups Projects
Commit 4dad5aab authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Todd Gamblin
Browse files

Add spack edit option for build systems (#2865)

parent 9b7001fd
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
module_path = join_path(lib_path, "spack") module_path = join_path(lib_path, "spack")
platform_path = join_path(module_path, 'platforms') platform_path = join_path(module_path, 'platforms')
compilers_path = join_path(module_path, "compilers") compilers_path = join_path(module_path, "compilers")
build_systems_path = join_path(module_path, 'build_systems')
operating_system_path = join_path(module_path, 'operating_systems') operating_system_path = join_path(module_path, 'operating_systems')
test_path = join_path(module_path, "test") test_path = join_path(module_path, "test")
hooks_path = join_path(module_path, "hooks") hooks_path = join_path(module_path, "hooks")
......
...@@ -69,6 +69,10 @@ def setup_parser(subparser): ...@@ -69,6 +69,10 @@ def setup_parser(subparser):
# Various types of Spack files that can be edited # Various types of Spack files that can be edited
# Edits package files by default # Edits package files by default
excl_args.add_argument(
'-b', '--build-system', dest='path', action='store_const',
const=spack.build_systems_path,
help="Edit the build system with the supplied name.")
excl_args.add_argument( excl_args.add_argument(
'-c', '--command', dest='path', action='store_const', '-c', '--command', dest='path', action='store_const',
const=spack.cmd.command_path, const=spack.cmd.command_path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment