diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-05-11 21:38:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 12:38:17 -0700 |
commit | 2a509ea0bf82dd5300a7e438733f0e1d5a37c519 (patch) | |
tree | 5a9272f80ff1d0be0b36c63932ae43ac81f3f71e /var | |
parent | fe46a1ce5f52a91d1ca9173e4e9cb4e749c36fe3 (diff) | |
download | spack-2a509ea0bf82dd5300a7e438733f0e1d5a37c519.tar.gz spack-2a509ea0bf82dd5300a7e438733f0e1d5a37c519.tar.bz2 spack-2a509ea0bf82dd5300a7e438733f0e1d5a37c519.tar.xz spack-2a509ea0bf82dd5300a7e438733f0e1d5a37c519.zip |
ASP-based solver: variants set from cli are considered as defaults (#23542)
Variants explicitly set in an abstract root spec are considered
as defaults for the package they refer to, and they override
what is in packages.yaml and in package.py. This is relevant
only for multi-valued variants, where a constraint may extend
an already default value.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/multivalue-variant/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/multivalue-variant/package.py b/var/spack/repos/builtin.mock/packages/multivalue-variant/package.py index 935df71a21..34663434cb 100644 --- a/var/spack/repos/builtin.mock/packages/multivalue-variant/package.py +++ b/var/spack/repos/builtin.mock/packages/multivalue-variant/package.py @@ -29,6 +29,11 @@ class MultivalueVariant(Package): multi=False ) + variant( + 'libs', default='shared', values=('shared', 'static'), multi=True, + description='Type of libraries to install' + ) + depends_on('mpi') depends_on('callpath') depends_on('a') |