aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-04 12:32:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-04 12:32:07 +0200
commit9d45f82f821f0663a7c21c69c26d93fa0613d48a (patch)
tree19e221c41cc0f43bf3621a8f1a2a21b62470851d /libbuild2/cc/common.hxx
parent8bae6cd94035cd5999ff2d767d91e176939ba203 (diff)
Handle duplicate suppression of multi-element libraries (-l foo)
See GitHub issue #114 for context.
Diffstat (limited to 'libbuild2/cc/common.hxx')
-rw-r--r--libbuild2/cc/common.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/cc/common.hxx b/libbuild2/cc/common.hxx
index 758c675..77819db 100644
--- a/libbuild2/cc/common.hxx
+++ b/libbuild2/cc/common.hxx
@@ -282,7 +282,9 @@ namespace build2
bool,
lflags,
const function<bool (const target&, bool)>&,
- const function<void (const target* const*, const string&, lflags, bool)>&,
+ const function<void (const target* const*,
+ const small_vector<reference_wrapper<const string>, 2>&,
+ lflags, bool)>&,
const function<void (const target&, const string&, bool, bool)>&,
bool = false,
small_vector<const target*, 16>* = nullptr) const;