aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx7
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