aboutsummaryrefslogtreecommitdiff
path: root/build2/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-19 17:10:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-19 17:10:51 +0200
commit89a9f8174ec858bf6df8515a84f061f211dec551 (patch)
tree030daad1364ea38a4f2ec22c57b41aeeb8b1b6e8 /build2/target.cxx
parent3ec07c196c9ab86db09c77bff7eb11cd5a5a9b1e (diff)
Add import library target libi{}, make libs{} the DLL
In the end, having libs{} be the DLL with import library being its member is more natural than making libs{} the import library and having dll{} as its member.
Diffstat (limited to 'build2/target.cxx')
-rw-r--r--build2/target.cxx3
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.