From 9d45f82f821f0663a7c21c69c26d93fa0613d48a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 4 May 2021 12:32:07 +0200 Subject: Handle duplicate suppression of multi-element libraries (-l foo) See GitHub issue #114 for context. --- libbuild2/cc/compile-rule.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libbuild2/cc/compile-rule.cxx') diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index ce586bb..40fb5bb 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -6193,10 +6193,11 @@ namespace build2 const target*& lt; } d {a, ht, lt}; - auto lib = [&d] (const target* const* lc, - const string&, - lflags, - bool) + auto lib = [&d] ( + const target* const* lc, + const small_vector, 2>&, + lflags, + bool) { // It's unfortunate we have no way to bail out. // -- cgit v1.1