diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-24 15:11:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:24:41 +0200 |
commit | ab6917b035a8431a13d85396ed15b75dabe44b36 (patch) | |
tree | 31622edcf0f0f46be4f88de41e2da0c8ecb85eaf /libbuild2/parser.hxx | |
parent | ab93dccd5806de95b9123ec6c2272847ca0ae592 (diff) |
Don't switch projects when switching scopes during bootstrap
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index b21336d..6552114 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -9,6 +9,7 @@ #include <libbuild2/utility.hxx> #include <libbuild2/spec.hxx> +#include <libbuild2/file.hxx> #include <libbuild2/lexer.hxx> #include <libbuild2/token.hxx> #include <libbuild2/variable.hxx> @@ -21,14 +22,7 @@ namespace build2 class LIBBUILD2_SYMEXPORT parser { public: - // The project's loading stage during which the parsing is performed. - // - enum class stage - { - boot, // Parsing bootstrap.build (or bootstrap pre/post hooks). - root, // Parsing root.build (or root pre/post hooks). - rest // Parsing the rest (ordinary buildfiles, command line, etc). - }; + using stage = load_stage; explicit parser (context& c, stage s = stage::rest) |