From 817ee81eaa0a22c86a6e92f63893f72976c74f08 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Mon, 23 May 2022 22:22:29 -0700 Subject: compiler flags: imposed hashes impose the lack of additional compiler flags (#30797) --- lib/spack/spack/solver/concretize.lp | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3-70-g09d2