diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-20 15:00:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 08:38:57 +0200 |
commit | e222cbabb84b5a6357242e47196f7e0eeb69a44f (patch) | |
tree | d1f11ce1c17055b3c66a2b0df3f8070c5845e253 /libbuild2/build/script/script.hxx | |
parent | 82ee575b32bc57598cec5eaaa3a170ac36de9af0 (diff) |
Implement build script variable hashing
Diffstat (limited to 'libbuild2/build/script/script.hxx')
-rw-r--r-- | libbuild2/build/script/script.hxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libbuild2/build/script/script.hxx b/libbuild2/build/script/script.hxx index 1540ed8..29d62aa 100644 --- a/libbuild2/build/script/script.hxx +++ b/libbuild2/build/script/script.hxx @@ -40,7 +40,19 @@ namespace build2 // Note that the variables are not pre-entered into a pool during the // parsing phase, so the line variable pointers are NULL. // - build2::script::lines lines; + build2::script::lines lines; + + // Referenced ordinary (non-special) variables. + // + // Used for the script semantics change tracking. The variable list is + // filled during the pre-parsing phase and is checked against during + // the execution phase. If during execution some non-script-local + // variable is not found in the list (may happen for a computed name), + // then the execution fails since the script semantics may not be + // properly tracked (the variable value change will not trigger the + // target rebuild). + // + small_vector<string, 1> vars; location start_loc; location end_loc; |