From d807adcd677392c93fed65e04af0a46ae159c8ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 23 Jan 2024 13:33:00 +0200 Subject: Fix bug in Buildscript pre-parsing logic --- libbuild2/build/script/parser.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libbuild2/build/script/parser.hxx') diff --git a/libbuild2/build/script/parser.hxx b/libbuild2/build/script/parser.hxx index ce550fc..8f86b24 100644 --- a/libbuild2/build/script/parser.hxx +++ b/libbuild2/build/script/parser.hxx @@ -396,7 +396,12 @@ namespace build2 // optional computed_var_; - // True during pre-parsing when the pre-parse mode is temporarily + // True if we (rather than the base parser) turned on the pre-parse + // mode. + // + bool top_pre_parse_; + + // True during top-pre-parsing when the pre-parse mode is temporarily // suspended to perform expansion. // bool pre_parse_suspended_ = false; -- cgit v1.1