aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-26 13:42:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-26 13:42:50 +0200
commitaf660dbeb882e19481117bff2257809eb86c4ee8 (patch)
tree1a1852344ab486c641655838cfa462dc07415fd1 /libbuild2/module.hxx
parent1fae906ceaf9d3ac0e3f429aeb4c8fad8b7caad8 (diff)
Fix bug in module initialization order
Diffstat (limited to 'libbuild2/module.hxx')
-rw-r--r--libbuild2/module.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx
index 4110682..4f69914 100644
--- a/libbuild2/module.hxx
+++ b/libbuild2/module.hxx
@@ -42,9 +42,11 @@ namespace build2
//
// By default a booted module is initialized before loading root.build.
//
- // The module should specify the before_first initialization mode if it
- // should be initialized first (within the resulting two groups the modules
- // are initializated in the order loaded).
+ // The module should specify the before_{first,second} initialization modes
+ // if it should be initialized in the first or second batch (within the
+ // resulting three groups the modules are initializated in the order
+ // loaded). The before_first mode is pretty much reserved for the config
+ // module.
//
// The module should specify the after initialization mode if it should be
// initialized after loading root.build. Note that in this case the module
@@ -53,6 +55,7 @@ namespace build2
enum class module_boot_init
{
before_first,
+ before_second,
before,
after
};