From d38dbf711c9532eea99607368278a8396b3db667 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 4 Dec 2020 12:53:52 +0300 Subject: In update ad hoc recipe buildscripts allow non-pure function calls only in depdeb preamble --- libbuild2/parser.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2/parser.cxx') 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_); -- cgit v1.1