diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-04 12:53:52 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-08 14:26:22 +0300 |
commit | d38dbf711c9532eea99607368278a8396b3db667 (patch) | |
tree | ab672c32b49a29a7c38edd121154fd7109717f28 /libbuild2/parser.cxx | |
parent | fb34688841668e6e4c939395c8387feabe8ddfdf (diff) |
In update ad hoc recipe buildscripts allow non-pure function calls only in depdeb preamble
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 92e0090..8118e0e 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -6013,6 +6013,8 @@ namespace build2 result_data = ctx.functions.call (scope_, name, args, loc); what = "function call"; } + else + lookup_function (move (name), loc); } else { @@ -6850,6 +6852,12 @@ namespace build2 } void parser:: + lookup_function (string&&, const location&) + { + assert (pre_parse_); + } + + void parser:: switch_scope (const dir_path& d) { tracer trace ("parser::switch_scope", &path_); |