aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-16 10:30:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-16 10:30:35 +0200
commitd91e48ea57b83f7018a25d3f54bba96cf889d66d (patch)
treeaa6376de69751ae0488febc8fb4faed041699687 /libbuild2/config/init.cxx
parent50bf3956c88ee6341d0023a421d502d604e3da4f (diff)
Add ability to initialize bootstrapped modules after loading root.build
Diffstat (limited to 'libbuild2/config/init.cxx')
-rw-r--r--libbuild2/config/init.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx
index 69da09c..df71fae 100644
--- a/libbuild2/config/init.cxx
+++ b/libbuild2/config/init.cxx
@@ -28,7 +28,7 @@ namespace build2
void
functions (function_map&); // functions.cxx
- bool
+ void
boot (scope& rs, const location&, module_boot_extra& extra)
{
tracer trace ("config::boot");
@@ -139,7 +139,9 @@ namespace build2
rs.insert_meta_operation (configure_id, mo_configure);
rs.insert_meta_operation (disfigure_id, mo_disfigure);
- return true; // Initialize first (load config.build).
+ // Initialize first (load config.build).
+ //
+ extra.init = module_boot_init::before_first;
}
// host-config.cxx.in