diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-27 09:07:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-27 09:07:09 +0200 |
commit | 2169f0e960c6e2b94518c03e6eb0406908b96e65 (patch) | |
tree | 73cfda5d0c7aa38c74104cca89931045db37892e /libbuild2/version/rule.cxx | |
parent | 1abc10223b37d9ead3454a06e176b4b65370a2be (diff) |
Improve module loading API
Diffstat (limited to 'libbuild2/version/rule.cxx')
-rw-r--r-- | libbuild2/version/rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/version/rule.cxx b/libbuild2/version/rule.cxx index fe999b3..463b6e0 100644 --- a/libbuild2/version/rule.cxx +++ b/libbuild2/version/rule.cxx @@ -80,7 +80,7 @@ namespace build2 // If we match, lookup and cache the module for the update operation. // if (r && a == perform_update_id) - t.data (rs.lookup_module<module> (module::name)); + t.data (rs.find_module<module> (module::name)); return r; } @@ -319,7 +319,7 @@ namespace build2 const path& p (t.path ()); const scope& rs (t.root_scope ()); - const module& m (*rs.lookup_module<module> (module::name)); + const module& m (*rs.find_module<module> (module::name)); if (!m.rewritten) return auto_rmfile (p, false /* active */); |