diff options
Diffstat (limited to 'build/target.cxx')
-rw-r--r-- | build/target.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
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 <build/target> +#include <butl/filesystem> + #include <build/scope> #include <build/search> #include <build/algorithm> @@ -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. |