From b1b6d9f2b18928237a47c14436eee3b985223ed0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Jun 2022 06:19:25 +0200 Subject: Make all dependency values accessible in reflect clause for same position --- bpkg/package-skeleton.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bpkg/package-skeleton.hxx') diff --git a/bpkg/package-skeleton.hxx b/bpkg/package-skeleton.hxx index a0ac38a..aa9b2a9 100644 --- a/bpkg/package-skeleton.hxx +++ b/bpkg/package-skeleton.hxx @@ -298,6 +298,16 @@ namespace bpkg reflect_variable_values dependency_reflect_; size_t dependency_reflect_index_ = 0; size_t dependency_reflect_pending_ = 0; + + // Position of the last successfully evaluated prefer/accept clauses. + // + // This information is used to make all (as opposed to only those set by + // the prefer clause) dependency configuration variables available to the + // reflect clause but only at the same position. This allows for some more + // advanced configuration techniques, such as, using a feature if enabled + // by someone else but not having any preferences ourselves. + // + optional> prefer_accept_; }; } -- cgit v1.1