From bed4a6152b8d2c2b3a1f5636a4c6a3848a24080a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Oct 2019 13:19:42 +0200 Subject: Add load_builtin_module() --- libbuild2/module.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2/module.hxx') diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx index f583361..3aaa1c7 100644 --- a/libbuild2/module.hxx +++ b/libbuild2/module.hxx @@ -154,6 +154,14 @@ namespace build2 // using loaded_module_map = std::map; LIBBUILD2_SYMEXPORT extern loaded_module_map loaded_modules; + + // Load a builtin module (i.e., a module linked as a static/shared library + // or that is part of the build system driver). + // + // Note: assumes serial execution. + // + LIBBUILD2_SYMEXPORT void + load_builtin_module (module_load_function*); } #endif // LIBBUILD2_MODULE_HXX -- cgit v1.1