From 037e5e9224648fdc9f3956d612fb476966847f5c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Aug 2021 11:07:09 +0200 Subject: Optimize process_libraries() some more --- libbuild2/target.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbuild2/target.hxx') 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_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. // -- cgit v1.1