aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/msvc.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-04-03 21:19:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-04-03 21:24:46 +0300
commit6e126ac30038502acf7016f0e76b3183f1304042 (patch)
tree0db3f56340e8c55a559e96762742ec925dbca68d /build2/cc/msvc.cxx
parenta797f6dd584c6f25bac7b0ed122ea7d1d9a42684 (diff)
Change depdb API and handle system_error thrown by butl::file_mtime()
Previously, debdb operations threw system_error and io_error to signal errors, except for opening which issued diagnostics and failed. Now all operations print the diagnostics and fail on system and IO errors.
Diffstat (limited to 'build2/cc/msvc.cxx')
-rw-r--r--build2/cc/msvc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cc/msvc.cxx b/build2/cc/msvc.cxx
index 78c29e0..32805c7 100644
--- a/build2/cc/msvc.cxx
+++ b/build2/cc/msvc.cxx
@@ -396,7 +396,7 @@ namespace build2
// Check if the file exists and is of the expected type.
//
- timestamp mt (file_mtime (f));
+ timestamp mt (mtime (f));
if (mt != timestamp_nonexistent && library_type (ld, f) == lt)
{