From be30decf3f777786a44b12920ac2d273b1c8d1f8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Aug 2021 10:48:19 +0200 Subject: Merge library hashing and collection into single traversal pass It turns out this is a lot faster on deeply-dependent libraries like Boost while not having any noticeable differences for "sane" projects. --- libbuild2/cc/link-rule.hxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'libbuild2/cc/link-rule.hxx') diff --git a/libbuild2/cc/link-rule.hxx b/libbuild2/cc/link-rule.hxx index fd12e89..c20844d 100644 --- a/libbuild2/cc/link-rule.hxx +++ b/libbuild2/cc/link-rule.hxx @@ -172,17 +172,12 @@ namespace build2 void append_libraries (appended_libraries&, strings&, + sha256*, bool*, timestamp, const scope&, action, const file&, bool, lflags, linfo, bool = true, bool = true, library_cache* = nullptr) const; - void - append_libraries (sha256&, bool&, timestamp, - const scope&, action, - const file&, bool, lflags, linfo, - library_cache* = nullptr) const; - using rpathed_libraries = small_vector; void @@ -197,11 +192,7 @@ namespace build2 const target&, linfo, bool) const; void - append_binless_modules (strings&, - const scope&, action, const file&) const; - - void - append_binless_modules (sha256&, + append_binless_modules (strings&, sha256*, const scope&, action, const file&) const; optional -- cgit v1.1