aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 17:27:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 17:27:25 +0200
commit902f3763af4931c5c04c47d10e4d24dba96487cd (patch)
tree9b91c7e1636bdaf5b3f6b1800a0793977ecacd46 /build/target.cxx
parent501ce5993f3d52208696c81248829247da7b46b5 (diff)
Move path_mtime to filesystem, rename file_mtime, follow symlinks
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx11
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.