aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/link-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-21 12:40:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-21 12:40:09 +0200
commit4ad1a241281d3e8fd0b28388c0191c044ac3d788 (patch)
tree00cbbd2acfcae931e675edbbf108ade345aa5036 /build2/cc/link-rule.cxx
parenta14daf38475a414e462708d9b0f4d651e5119b58 (diff)
More backwards modification time experimentation
Diffstat (limited to 'build2/cc/link-rule.cxx')
-rw-r--r--build2/cc/link-rule.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx
index 981358e..2581d6f 100644
--- a/build2/cc/link-rule.cxx
+++ b/build2/cc/link-rule.cxx
@@ -2076,7 +2076,7 @@ namespace build2
timestamp dd_tt (system_clock::now ());
#endif
- dd.close ();
+ timestamp dd_cl (dd.close ());
// If nothing changed, then we are done.
//
@@ -2569,6 +2569,7 @@ namespace build2
if (dd_mt > tp_mt)
fail << "backwards modification times:\n"
<< dd_tt << " window start\n"
+ << dd_cl << " write mtime\n"
<< dd.mtime << " close mtime\n"
<< dd_mt << " " << dd.path.string () << '\n'
<< tp_mt << " " << tp.string () << '\n'