diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-08 13:18:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-08 13:18:31 +0200 |
commit | eebb47a613e47b2c25d64d5766323dfeeb5c3a73 (patch) | |
tree | a4a01e0dcd59e5efb12abfcc6c5d15def54c533d /libbuild2/algorithm.cxx | |
parent | 758a50eb1825f2e0c1acd5c61d36bb5b866585b8 (diff) |
Hash ad hoc prerequsites for ad hoc recipe change detection
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r-- | libbuild2/algorithm.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 077bdf2..de68be2 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -2059,12 +2059,7 @@ namespace build2 // if (const mtime_target* mpt = pt.is_a<mtime_target> ()) { - timestamp mp (mpt->mtime ()); - - // The same logic as in mtime_target::newer() (but avoids a call to - // state()). - // - if (mt < mp || (mt == mp && s == target_state::changed)) + if (mpt->newer (mt, s)) e = true; } else |