From b601cf3e41b17d66c412dac7be9e361d65898c7b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Jun 2020 14:20:46 +0200 Subject: Improve depdb::check_mtime() diagnostics --- libbuild2/depdb.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2') diff --git a/libbuild2/depdb.cxx b/libbuild2/depdb.cxx index d88999d..4a40862 100644 --- a/libbuild2/depdb.cxx +++ b/libbuild2/depdb.cxx @@ -357,6 +357,10 @@ namespace build2 // information for some platforms. // timestamp t_mt (build2::mtime (t)); + + if (t_mt == timestamp_nonexistent) + fail << "target file " << t << " does not exist at the end of recipe"; + timestamp d_mt (build2::mtime (path)); if (d_mt > t_mt) @@ -384,6 +388,10 @@ namespace build2 using build2::mtime; timestamp t_mt (mtime (t)); + + if (t_mt == timestamp_nonexistent) + fail << "target file " << t << " does not exist at the end of recipe"; + timestamp d_mt (mtime (d)); if (d_mt > t_mt) -- cgit v1.1