aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/link-rule.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/cc/link-rule.cxx
parent8e5675569e57097025429164eaf2903ff3bd824f (diff)
Extend backwards modification time diagnostics
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 d8434d8..c4fd82b 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_ct (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_ct << " close mtime\n"
<< dd_mt << " " << dd.path.string () << '\n'
<< tp_mt << " " << tp.string () << '\n'
<< tp_tt << " window end";