aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-03 14:11:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-03 14:11:17 +0200
commitf0da422177d416aef2e446b23e8bbf2ec79a9aab (patch)
treec49ce936c1573c996c363aa1e7f4d602993f63a9 /build2/cc/compile-rule.cxx
parent8618078b90189fb49e9c0a76ac01d471b51f1e93 (diff)
Support <>-style header specification in importable_headers
Diffstat (limited to 'build2/cc/compile-rule.cxx')
-rw-r--r--build2/cc/compile-rule.cxx8
1 files changed, 7 insertions, 1 deletions
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)
{