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/parser.cxx | |
parent | 82ee575b32bc57598cec5eaaa3a170ac36de9af0 (diff) |
Implement build script variable hashing
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index ff32340..7a4efcd 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1131,6 +1131,8 @@ namespace build2 auto* asr (new adhoc_script_rule (move (diag), loc, st.value.size ())); ar.reset (asr); + asr->checksum = sha256 (t.value).string (); + istringstream is (move (t.value)); build::script::parser p (ctx); asr->script = p.pre_parse (is, asr->loc.file, loc.line + 1); |