From f0da422177d416aef2e446b23e8bbf2ec79a9aab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 May 2019 14:11:17 +0200 Subject: Support <>-style header specification in importable_headers --- build2/cc/compile-rule.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build2/cc/compile-rule.cxx') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index dd38945..794b64e 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -2005,7 +2005,13 @@ namespace build2 // if (const strings* ih = import_hdr) { - auto i (lower_bound (ih->begin (), ih->end (), hp)); + auto i (lower_bound (ih->begin (), + ih->end (), + hp, + [] (const string& x, const string& y) + { + return path::traits::compare (x, y) < 0; + })); if (i != ih->end () && *i == hp) { -- cgit v1.1