Adding --reuse to dev-build command. (#27487)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
def setup_parser(subparser):
|
||||
arguments.add_common_arguments(subparser, ['jobs'])
|
||||
arguments.add_common_arguments(subparser, ['jobs', 'reuse'])
|
||||
subparser.add_argument(
|
||||
'-d', '--source-path', dest='source_path', default=None,
|
||||
help="path to source directory. defaults to the current directory")
|
||||
@@ -86,7 +86,7 @@ def dev_build(self, args):
|
||||
# Forces the build to run out of the source directory.
|
||||
spec.constrain('dev_path=%s' % source_path)
|
||||
|
||||
spec.concretize()
|
||||
spec.concretize(reuse=args.reuse)
|
||||
package = spack.repo.get(spec)
|
||||
|
||||
if package.installed:
|
||||
|
Reference in New Issue
Block a user