From eebb47a613e47b2c25d64d5766323dfeeb5c3a73 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Jun 2020 13:18:31 +0200 Subject: Hash ad hoc prerequsites for ad hoc recipe change detection --- libbuild2/algorithm.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libbuild2/algorithm.cxx') 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 ()) { - 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 -- cgit v1.1