summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2022-05-23 22:22:29 -0700
committerGitHub <noreply@github.com>2022-05-24 01:22:29 -0400
commit817ee81eaa0a22c86a6e92f63893f72976c74f08 (patch)
tree9264416bddcd61dc80aad4a9bc276c56548faeb9
parent330832c22cfa59554f6681a570bdec24ca46e79b (diff)
downloadspack-817ee81eaa0a22c86a6e92f63893f72976c74f08.tar.gz
spack-817ee81eaa0a22c86a6e92f63893f72976c74f08.tar.bz2
spack-817ee81eaa0a22c86a6e92f63893f72976c74f08.tar.xz
spack-817ee81eaa0a22c86a6e92f63893f72976c74f08.zip
compiler flags: imposed hashes impose the lack of additional compiler flags (#30797)
-rw-r--r--lib/spack/spack/solver/concretize.lp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp
index 7c14ac1f4f..1e7d0f66de 100644
--- a/lib/spack/spack/solver/concretize.lp
+++ b/lib/spack/spack/solver/concretize.lp
@@ -119,6 +119,11 @@ attr(Name, A1, A2, A3) :- impose(ID), imposed_constraint(ID, Name, A1, A2, A3).
variant_value(Package, Variant, Value),
not imposed_constraint(Hash, "variant_value", Package, Variant, Value).
+% we cannot have additional flag values when we are working with concrete specs
+:- node(Package), hash(Package, Hash),
+ node_flag(Package, FlagType, Flag),
+ not imposed_constraint(Hash, "node_flag", Package, FlagType, Flag).
+
#defined condition/2.
#defined condition_requirement/3.
#defined condition_requirement/4.