aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-15 09:35:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-15 09:35:47 +0200
commitcbf10b8d1659be3656207745c6932f45f4b100e1 (patch)
tree59dc7289cc29910abd7ee737ac2cb25460e284d9
parente33d019df8dd84cf5b9b078daa643a65b7fde22f (diff)
Don't realize() header path if it comes from depdb
-rw-r--r--build2/cxx/compile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx
index 10d80db..b07019d 100644
--- a/build2/cxx/compile.cxx
+++ b/build2/cxx/compile.cxx
@@ -644,9 +644,11 @@ namespace build2
{
// We used to just normalize the path but that could result in an
// invalid path (e.g., on CentOS 7 with Clang 3.4) because of the
- // symlinks. So now we realize (i.e., realpath(3)) it instead.
+ // symlinks. So now we realize (i.e., realpath(3)) it instead. If
+ // it comes from the depdb, in which case we've already done that.
//
- f.realize ();
+ if (!cache)
+ f.realize ();
}
l6 ([&]{trace << "injecting " << f;});