From b9e8ca2f16bc06fdaa9b2b7c3bfffca01ec590ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Jun 2022 08:58:12 +0200 Subject: Handle bogus configuration variables --- bpkg/package-configuration.hxx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'bpkg/package-configuration.hxx') diff --git a/bpkg/package-configuration.hxx b/bpkg/package-configuration.hxx index d6fc989..655b414 100644 --- a/bpkg/package-configuration.hxx +++ b/bpkg/package-configuration.hxx @@ -46,8 +46,32 @@ namespace bpkg // first set this variable to this value. // optional dependent; + + // If origin is buildfile, then this flag indicates whether the + // originating dependent has been encountered during the negotiation + // retry. + // + bool confirmed; + + public: + void + undefine () + { + origin = build2::config::variable_origin::undefined; + value = nullopt; + dependent = nullopt; + confirmed = false; + } + + // Serialize the variable value as a command line override. + // + string + serialize_cmdline () const; }; + void + to_checksum (sha256&, const config_variable_value&); + // A subset of config_variable_value for variable values set by the // dependents (origin is buildfile). Used to track change history. // -- cgit v1.1