summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/concretize.lp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp
index 2bbf3091c6..02528e694d 100644
--- a/lib/spack/spack/solver/concretize.lp
+++ b/lib/spack/spack/solver/concretize.lp
@@ -673,6 +673,8 @@ variant_not_default(Package, Variant, Value)
not variant_default_value(Package, Variant, Value),
% variants set explicitly on the CLI don't count as non-default
not variant_set(Package, Variant, Value),
+ % variant values forced by propagation don't count as non-default
+ not variant_propagate(Package, Variant, Value, _),
% variants set on externals that we could use don't count as non-default
% this makes spack prefer to use an external over rebuilding with the
% default configuration