diff options
Diffstat (limited to 'build2/target.cxx')
-rw-r--r-- | build2/target.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/target.cxx b/build2/target.cxx index a8fae39..b0fc92d 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -383,8 +383,7 @@ namespace build2 load_mtime () const { const path_type& f (path ()); - assert (!f.empty ()); - return file_mtime (f); + return f.empty () ? timestamp_unknown : file_mtime (f); } // Search functions. |