From 902f3763af4931c5c04c47d10e4d24dba96487cd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 17:27:25 +0200 Subject: Move path_mtime to filesystem, rename file_mtime, follow symlinks --- build/target.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build/target.cxx') diff --git a/build/target.cxx b/build/target.cxx index 3810092..1040443 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -4,6 +4,8 @@ #include +#include + #include #include #include @@ -268,11 +270,14 @@ namespace build return dir / path_type (move (n)); } - timestamp path_target:: + // file_target + // + timestamp file:: load_mtime () const { - assert (!path_.empty ()); - return path_mtime (path_); + const path_type& f (path ()); + assert (!f.empty ()); + return file_mtime (f); } // Search functions. -- cgit v1.1