diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-09-14 12:25:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 12:25:24 +0200 |
commit | 6838ee6bb86e5ed7d9ac860731c9e24377c1e39d (patch) | |
tree | 46ed3647cb9370e39408568277ffa742c78e9857 /share | |
parent | d50f296d4f9432262c16d86cd64eb006b31c8a32 (diff) | |
download | spack-6838ee6bb86e5ed7d9ac860731c9e24377c1e39d.tar.gz spack-6838ee6bb86e5ed7d9ac860731c9e24377c1e39d.tar.bz2 spack-6838ee6bb86e5ed7d9ac860731c9e24377c1e39d.tar.xz spack-6838ee6bb86e5ed7d9ac860731c9e24377c1e39d.zip |
Add efficient `deptype` flag and `spack.deptypes` module (#39472)
This commit replaces the internal representation of deptypes with `int`, which is more compact
and faster to operate with.
Double loops like:
```
any(x in ys for x in xs)
```
are replaced by constant operations bool(xs & ys), where xs and ys are dependency types.
Global constants are exposed for convenience in `spack.deptypes`
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish index d4cb61e85d..9be1087b23 100755 --- a/share/spack/spack-completion.fish +++ b/share/spack/spack-completion.fish @@ -1273,7 +1273,7 @@ complete -c spack -n '__fish_spack_using_command dependencies' -s i -l installed complete -c spack -n '__fish_spack_using_command dependencies' -s t -l transitive -f -a transitive complete -c spack -n '__fish_spack_using_command dependencies' -s t -l transitive -d 'show all transitive dependencies' complete -c spack -n '__fish_spack_using_command dependencies' -l deptype -r -f -a deptype -complete -c spack -n '__fish_spack_using_command dependencies' -l deptype -r -d 'comma-separated list of deptypes to traverse' +complete -c spack -n '__fish_spack_using_command dependencies' -l deptype -r -d 'comma-separated list of deptypes to traverse (default=build,link,run,test)' complete -c spack -n '__fish_spack_using_command dependencies' -s V -l no-expand-virtuals -f -a expand_virtuals complete -c spack -n '__fish_spack_using_command dependencies' -s V -l no-expand-virtuals -d 'do not expand virtual dependencies' @@ -1815,7 +1815,7 @@ complete -c spack -n '__fish_spack_using_command graph' -s c -l color -d 'use di complete -c spack -n '__fish_spack_using_command graph' -s i -l installed -f -a installed complete -c spack -n '__fish_spack_using_command graph' -s i -l installed -d 'graph installed specs, or specs in the active env (implies --dot)' complete -c spack -n '__fish_spack_using_command graph' -l deptype -r -f -a deptype -complete -c spack -n '__fish_spack_using_command graph' -l deptype -r -d 'comma-separated list of deptypes to traverse' +complete -c spack -n '__fish_spack_using_command graph' -l deptype -r -d 'comma-separated list of deptypes to traverse (default=build,link,run,test)' # spack help set -g __fish_spack_optspecs_spack_help h/help a/all spec |