diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-24 08:53:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-24 08:53:06 +0200 |
commit | a94dcda7f00b10cb22b5f2138b1c29bcfbe7de37 (patch) | |
tree | c4ca2c4b2ea08285774569283120233a03aa2cb3 /build/config/module.cxx | |
parent | eaaa82bd9c1e24a83dcea3857f5fd75d0dfb6de5 (diff) |
Make meta-operations control build loop; add disfigure skeleton
Diffstat (limited to 'build/config/module.cxx')
-rw-r--r-- | build/config/module.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/config/module.cxx b/build/config/module.cxx index b184286..dca6ede 100644 --- a/build/config/module.cxx +++ b/build/config/module.cxx @@ -26,24 +26,24 @@ namespace build } void - load (scope& root, scope& base, const location& l) + init (scope& root, scope& base, const location& l) { - tracer trace ("config::load"); + tracer trace ("config::init"); - //@@ TODO: avoid multiple loads (generally, for modules). + //@@ TODO: avoid multiple inits (generally, for modules). // level4 ([&]{trace << "for " << root.path () << '/';}); if (&root != &base) - fail (l) << "config module must be loaded in project root scope"; + fail (l) << "config module must be initialized in project root scope"; // Register meta-operations. // if (root.meta_operations.insert (configure) != configure_id || root.meta_operations.insert (disfigure) != disfigure_id) - fail (l) << "config module must be loaded before other modules"; + fail (l) << "config module must be initialized before other modules"; - // Register the build/config.build loading trigger. + // Register the build/config.build sourcing trigger. // root.triggers[path ("build/config.build")] = &trigger; } |