aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/config')
-rw-r--r--libbuild2/config/init.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx
index f0f4841..aa2c763 100644
--- a/libbuild2/config/init.cxx
+++ b/libbuild2/config/init.cxx
@@ -215,7 +215,10 @@ namespace build2
info << "consider reconfiguring " << project (rs) << '@'
<< rs.out_path ();
- source (rs, rs, lex);
+ // Treat it as continuation of bootstrap to avoid project switching
+ // (see switch_scope() for details).
+ //
+ source (rs, rs, lex, load_stage::boot);
};
auto load_config_file = [&load_config] (const path& f, const location& l)