aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-20 14:00:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit82ee575b32bc57598cec5eaaa3a170ac36de9af0 (patch)
tree68274e597b5d378b0b0209b5dedf9451d2c940b1 /libbuild2/build
parent7c8e544b520cc46c174a952e63ccd2d71002516d (diff)
Add ability to notice variable expansions in pre-parse mode
Diffstat (limited to 'libbuild2/build')
-rw-r--r--libbuild2/build/script/parser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/build/script/parser.cxx b/libbuild2/build/script/parser.cxx
index 9c397f1..6649777 100644
--- a/libbuild2/build/script/parser.cxx
+++ b/libbuild2/build/script/parser.cxx
@@ -327,7 +327,8 @@ namespace build2
lookup parser::
lookup_variable (name&& qual, string&& name, const location& loc)
{
- assert (!pre_parse_);
+ if (pre_parse_)
+ return lookup ();
if (!qual.empty ())
fail (loc) << "qualified variable name";