diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-06 13:37:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-06 13:37:52 +0200 |
commit | 35bd274ee7ac9611b9c8354f74bba2eb44c4987a (patch) | |
tree | 21d1b8b3350b8a50c7b9c8356ab403499a588167 | |
parent | fae229bbcbc4f69fe8af58ad3e5f3305cca12a02 (diff) |
Ignore instead of overriding header prefix (now more specific -I's come first)
-rw-r--r-- | build2/cc/compile.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 6fd6f16..2dc2a28 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -488,16 +488,18 @@ namespace build2 { if (j->second != d) { - // We used to reject duplicates but it seems this can - // be reasonably expected to work according to the order - // of the -I options. + // We used to reject duplicates but it seems this can be + // reasonably expected to work according to the order of the -I + // options. + // + // Seeing that we normally have more "specific" -I paths first, + // (so that we don't pick up installed headers, etc), we ignore + // it. // if (verb >= 4) - trace << "overriding dependency prefix '" << p << "'\n" - << " old mapping to " << j->second << "\n" - << " new mapping to " << d; - - j->second = d; + trace << "ignoring dependency prefix '" << p << "'\n" + << " existing mapping to " << j->second << "\n" + << " another mapping to " << d; } } else |