diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-04-05 02:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 17:37:57 -0700 |
commit | f2fc4ee9afcb1a159853b4037a8747949d65f7d9 (patch) | |
tree | f11fea6e5c5ec845c9cfe85ef416d5cbae150c38 /SECURITY.md | |
parent | d64de54ebe83853694e30e562b7f9edc996ccd2d (diff) | |
download | spack-f2fc4ee9afcb1a159853b4037a8747949d65f7d9.tar.gz spack-f2fc4ee9afcb1a159853b4037a8747949d65f7d9.tar.bz2 spack-f2fc4ee9afcb1a159853b4037a8747949d65f7d9.tar.xz spack-f2fc4ee9afcb1a159853b4037a8747949d65f7d9.zip |
Allow conditional possible values in variants (#29530)
Allow declaring possible values for variants with an associated condition. If the variant takes one of those values, the condition is imposed as a further constraint.
The idea of this PR is to implement part of the mechanisms needed for modeling [packages with multiple build-systems]( https://github.com/spack/seps/pull/3). After this PR the build-system directive can be implemented as:
```python
variant(
'build-system',
default='cmake',
values=(
'autotools',
conditional('cmake', when='@X.Y:')
),
description='...',
)
```
Modifications:
- [x] Allow conditional possible values in variants
- [x] Add a unit-test for the feature
- [x] Add documentation
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions