From 56ddb0a7dfcc00cf1ef5ea3777b6bb1e7a1faa34 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 May 2022 09:43:14 +0200 Subject: Extract old user configuration values from config.build (NEEDS TEST) --- bpkg/package-skeleton.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpkg/package-skeleton.hxx') diff --git a/bpkg/package-skeleton.hxx b/bpkg/package-skeleton.hxx index 6030bdd..dfb396d 100644 --- a/bpkg/package-skeleton.hxx +++ b/bpkg/package-skeleton.hxx @@ -102,10 +102,15 @@ namespace bpkg private: // Create the skeleton if necessary and (re)load the build system state. // + // If merge_config_vars is true, then extract old user configuration + // variables from config.build (or equivalent) and merge them into + // config_vars_. This is only necessary if something (e.g., reflect) could + // override their values in config.build. + // // Call this function before evaluating every clause. // build2::scope& - load (); + load (bool merge_config_vars); private: // NOTE: remember to update move/copy constructors! -- cgit v1.1