aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-10 11:24:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-10 11:24:30 +0200
commit545cc8ae0ac68744c4dd23a4a766c89309a64044 (patch)
treeacc76f2483b13538696c27f60bc5e318f14b7095
parent34047a8e231584b1808770df06340bd97fa20253 (diff)
Reorder inline function definitions to help MinGW GCC
-rw-r--r--libbuild2/target.ixx14
1 files 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::