aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-28 12:11:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-28 12:11:17 +0200
commit86733b192e97e413281d35ee44bfbf2ee8a8aa87 (patch)
treee369546c4c92957ca0d53dcd2ddb4e29e45dffe9
parentc81ffb547ff599756662fe14eeed130ac7f204af (diff)
Add note on potential future improvements to mtime check
-rw-r--r--build2/depdb.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/depdb.hxx b/build2/depdb.hxx
index f93f16c..ce7dd39 100644
--- a/build2/depdb.hxx
+++ b/build2/depdb.hxx
@@ -116,6 +116,12 @@ namespace build2
// Perform target/database modification times sanity check.
//
+ // Note that it would also be good to compare the target timestamp against
+ // the newest prerequisite. However, obtaining this information would cost
+ // extra (see execute_prerequisites()). So maybe later, if we get a case
+ // where this is a problem (in a sense, the database is a buffer between
+ // prerequisites and the target).
+ //
void
check_mtime (const path_type& target, timestamp end = timestamp_unknown);