From d91e48ea57b83f7018a25d3f54bba96cf889d66d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 16 Aug 2020 10:30:35 +0200 Subject: Add ability to initialize bootstrapped modules after loading root.build --- libbuild2/version/init.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/version') diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx index 681b6a4..7cb5a48 100644 --- a/libbuild2/version/init.cxx +++ b/libbuild2/version/init.cxx @@ -30,7 +30,7 @@ namespace build2 static const in_rule in_rule_; static const manifest_install_rule manifest_install_rule_; - bool + void boot (scope& rs, const location& l, module_boot_extra& extra) { tracer trace ("version::boot"); @@ -279,7 +279,9 @@ namespace build2 rewritten, move (ds))); - return true; // Init first (dist.package, etc). + // Initialize first (dist.package, etc). + // + extra.init = module_boot_init::before_first; } static void -- cgit v1.1