aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/link-rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-09 10:48:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-09 10:48:19 +0200
commitbe30decf3f777786a44b12920ac2d273b1c8d1f8 (patch)
tree12387f284a822fa1aa0e09ecfbdea8e24405d8c8 /libbuild2/cc/link-rule.hxx
parenteaeeb079c1715b5b0ecc0b20bd4e5f45d0655452 (diff)
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.
Diffstat (limited to 'libbuild2/cc/link-rule.hxx')
-rw-r--r--libbuild2/cc/link-rule.hxx13
1 files changed, 2 insertions, 11 deletions
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<const file*, 256>;
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<path>