aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-05 18:20:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-05 18:20:38 +0200
commit772c3a09a8c99c3d032b1564f5da9ebbc766b3f1 (patch)
treec6a1e83604699e2c1be12ad6e9a1f228dd885713 /build2/cc
parent67ceaa76da58303843c913b42ee493e33eb42d49 (diff)
Minor changes
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/compile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 79d40c3..bfc79c9 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -2052,7 +2052,7 @@ namespace build2
if (!pfx_map->empty ())
{
dir_path d (f.directory ());
- auto i (pfx_map->find_sub (d));
+ auto i (pfx_map->find_sup (d));
if (i != pfx_map->end ())
{
@@ -2097,7 +2097,7 @@ namespace build2
{
// Find the most qualified prefix of which we are a sub-path.
//
- auto i (so_map.find_sub (f));
+ auto i (so_map.find_sup (f));
if (i != so_map.end ())
{
// Ok, there is an out tree for this headers. Remap to a path