diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-01 13:31:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-01 13:31:19 +0200 |
commit | ce558a5aebc649e52da9598f248bd15fd08a9ba2 (patch) | |
tree | 43d7de32f58cf4f273eea56214a7921da96a3e20 /libbuild2/parser.hxx | |
parent | 82ff2e7df2243b679aadbc6cc120a2b5f7ee73b3 (diff) |
Use original variable name in config report
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 0645b5a..3e1d0a0 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -136,9 +136,16 @@ namespace build2 // struct config_report { - project_name module; // Reporting module name. - vector<pair<lookup, string>> values; // Config value and format. - bool new_value; // One of values is new. + struct value + { + lookup val; // Value. + string fmt; // Format. + string org; // Original variable if config.report.variable. + }; + + project_name module; // Reporting module name. + vector<value> values; + bool new_value; // One of values is new. }; small_vector<config_report, 1> config_reports; |