From af660dbeb882e19481117bff2257809eb86c4ee8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Aug 2020 13:42:50 +0200 Subject: Fix bug in module initialization order --- libbuild2/module.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libbuild2/module.hxx') 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 }; -- cgit v1.1