diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-16 10:10:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-16 10:10:59 +0200 |
commit | e04fc00e978bb242f2aa6f0d1a6c4075048c9e09 (patch) | |
tree | 93f8d9c23cd25e473122fb78e75800f73370a9d3 /libbuild2/parser.hxx | |
parent | a933cdeb0c674409bbd52757bcef314fd8bddb46 (diff) |
Enter export stub targets with correct out
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index b3a5395..eea8507 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -69,14 +69,20 @@ namespace build2 scope* root, scope& base, target* = nullptr, - prerequisite* = nullptr); + prerequisite* = nullptr, + bool enter_buildfile = true); void parse_buildfile (lexer&, scope* root, scope& base, target* = nullptr, - prerequisite* = nullptr); + prerequisite* = nullptr, + bool enter_buildfile = true); + + names + parse_export_stub (istream& is, const path_name& name, + const scope& rs, scope& gs, scope& ts); buildspec parse_buildspec (istream&, const path_name&); @@ -87,14 +93,6 @@ namespace build2 pair<value, token> parse_variable_value (lexer&, scope&, const dir_path*, const variable&); - names - parse_export_stub (istream& is, const path_name& name, - scope& rs, scope& bs) - { - parse_buildfile (is, name, &rs, bs); - return move (export_value); - } - // Parse an evaluation context (`(...)`). // value @@ -620,7 +618,7 @@ namespace build2 // Enter buildfile as a target. // void - enter_buildfile (const path&); + enter_buildfile (const path&, optional<dir_path> out = nullopt); // Lexer. // |