diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-02-15 08:43:36 -0800 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2022-02-16 10:17:18 -0800 |
commit | b1ff9c05bca6af931d536ac2b0764e4f22e74f2f (patch) | |
tree | d7aef68de363f4e9fa5ca845951d3e42ce1e4d83 /var | |
parent | d33973df6c367581c26d3a112180b187dce57ba1 (diff) | |
download | spack-b1ff9c05bca6af931d536ac2b0764e4f22e74f2f.tar.gz spack-b1ff9c05bca6af931d536ac2b0764e4f22e74f2f.tar.bz2 spack-b1ff9c05bca6af931d536ac2b0764e4f22e74f2f.tar.xz spack-b1ff9c05bca6af931d536ac2b0764e4f22e74f2f.zip |
concretizer: refactor argument passing for reuse
Reuse previously was a very invasive change that required parameters to be added to all
the methods that called `concretize()` on a `Spec` object. With the addition of
concretizer configuration, we can use the config system to simplify this argument
passing and keep the code cleaner.
We decided that concretizer config options should be read at `Solver` instantiation
time, and if config changes between instnatiation of a particular solver and
`solve()` invocation, the `Solver` should use the settings from `__init__()`.
- [x] remove `reuse` keyword argument from most concretize functions
- [x] refactor usages to use `spack.config.override("concretizer:reuse", True)`
- [x] rework argument passing in `Solver` so that parameters are set from config
at instantiation time
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions