From 545cc8ae0ac68744c4dd23a4a766c89309a64044 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 10 Jun 2020 11:24:30 +0200 Subject: Reorder inline function definitions to help MinGW GCC --- libbuild2/target.ixx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx index 445c413..822aff9 100644 --- a/libbuild2/target.ixx +++ b/libbuild2/target.ixx @@ -519,13 +519,6 @@ namespace build2 } inline bool mtime_target:: - newer (timestamp mt) const - { - assert (ctx.phase == run_phase::execute); - return newer (mt, executed_state_impl (action () /* inner */)); - } - - inline bool mtime_target:: newer (timestamp mt, target_state s) const { timestamp mp (mtime ()); @@ -538,6 +531,13 @@ namespace build2 return mt < mp || (mt == mp && s == target_state::changed); } + inline bool mtime_target:: + newer (timestamp mt) const + { + assert (ctx.phase == run_phase::execute); + return newer (mt, executed_state_impl (action () /* inner */)); + } + // path_target // inline const path& path_target:: -- cgit v1.1