diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-11 11:07:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-11 11:07:09 +0200 |
commit | 037e5e9224648fdc9f3956d612fb476966847f5c (patch) | |
tree | 7c829f581fbd0caafd4a121c7f3a1ab60e3c5557 /libbuild2/target.hxx | |
parent | 67db22fcae32c8a8014866ef2ee55b6c7733c3f9 (diff) |
Optimize process_libraries() some more
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 01f01e1..de17fa8 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -446,10 +446,13 @@ namespace build2 } // If target_only is true, then only look in target and its target group - // without continuing in scopes. + // without continuing in scopes. As an optimization, the caller can also + // pass the base scope of the target, if already known. // pair<lookup_type, size_t> - lookup_original (const variable&, bool target_only = false) const; + lookup_original (const variable&, + bool target_only = false, + const scope* bs = nullptr) const; // Return a value suitable for assignment. See scope for details. // |