From d1fbcace59846d55c66e741dbc3d59e20ae3e5cf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Jun 2019 12:28:05 +0200 Subject: Fix C/C++ link rule matching ambiguity by seeing-through utility libraries --- build2/cc/link-rule.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build2/cc/link-rule.hxx') diff --git a/build2/cc/link-rule.hxx b/build2/cc/link-rule.hxx index 1a77aef..2df22cf 100644 --- a/build2/cc/link-rule.hxx +++ b/build2/cc/link-rule.hxx @@ -24,6 +24,18 @@ namespace build2 public: link_rule (data&&); + struct match_result + { + bool seen_x = false; + bool seen_c = false; + bool seen_cc = false; + bool seen_obj = false; + bool seen_lib = false; + }; + + match_result + match (action, target&, ltype, bool) const; + virtual bool match (action, target&, const string&) const override; -- cgit v1.1