From 2169f0e960c6e2b94518c03e6eb0406908b96e65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Jan 2020 09:07:09 +0200 Subject: Improve module loading API --- libbuild2/config/operation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/config/operation.cxx') diff --git a/libbuild2/config/operation.cxx b/libbuild2/config/operation.cxx index 9f241e8..81b99be 100644 --- a/libbuild2/config/operation.cxx +++ b/libbuild2/config/operation.cxx @@ -172,7 +172,7 @@ namespace build2 // saved) and this function can be called from a buildfile (probably // only during serial execution but still). // - module* mod (rs.lookup_module (module::name)); + module* mod (rs.find_module (module::name)); if (mod == nullptr) fail (on) << "no configuration information available during this " @@ -336,7 +336,7 @@ namespace build2 { // Find the config module (might not be there). // - if (auto* m = r->lookup_module (module::name)) + if (auto* m = r->find_module (module::name)) { // Find the corresponding saved module. // -- cgit v1.1