summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Davis <davis291@llnl.gov>2021-11-19 00:25:45 -0800
committerGitHub <noreply@github.com>2021-11-19 09:25:45 +0100
commit3375db12a50e73f68972cf6e85455148f9c2e488 (patch)
treeb66acc478dc5601f8aedad9a6b80f5e6f87722ae /lib
parent4d059ead8ce4e97e1db8d8fd8f206b9d08b2452d (diff)
downloadspack-3375db12a50e73f68972cf6e85455148f9c2e488.tar.gz
spack-3375db12a50e73f68972cf6e85455148f9c2e488.tar.bz2
spack-3375db12a50e73f68972cf6e85455148f9c2e488.tar.xz
spack-3375db12a50e73f68972cf6e85455148f9c2e488.zip
Adding --reuse to dev-build command. (#27487)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/dev_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/dev_build.py b/lib/spack/spack/cmd/dev_build.py
index 24c416e105..d2fc8df638 100644
--- a/lib/spack/spack/cmd/dev_build.py
+++ b/lib/spack/spack/cmd/dev_build.py
@@ -19,7 +19,7 @@ level = "long"
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: