From cbf10b8d1659be3656207745c6932f45f4b100e1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Mar 2016 09:35:47 +0200 Subject: Don't realize() header path if it comes from depdb --- build2/cxx/compile.cxx | 6 ++++-- 1 file 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;}); -- cgit v1.1