aboutsummaryrefslogtreecommitdiff
path: root/build2/depdb.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-19 21:07:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-19 21:07:26 +0200
commitcf6374ec9a2fc3c765a07dcad73e05ea757ee477 (patch)
tree91aed2975faaee76f25fa4b679d3cd737438c51a /build2/depdb.cxx
parent8e5675569e57097025429164eaf2903ff3bd824f (diff)
Extend backwards modification time diagnostics
Diffstat (limited to 'build2/depdb.cxx')
-rw-r--r--build2/depdb.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/depdb.cxx b/build2/depdb.cxx
index 416f1f4..8abd5f2 100644
--- a/build2/depdb.cxx
+++ b/build2/depdb.cxx
@@ -201,7 +201,7 @@ namespace build2
fs_.put ('\n');
}
- void depdb::
+ timestamp depdb::
close ()
{
// If we are at eof, then it means all lines are good, there is the "end
@@ -263,7 +263,9 @@ namespace build2
//
#if defined(_WIN32) || defined(__FreeBSD__)
if (state_ == state::write)
- file_mtime (path);
+ mtime = file_mtime (path);
#endif
+
+ return mtime;
}
}