diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-03 21:19:50 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-03 21:24:46 +0300 |
commit | 6e126ac30038502acf7016f0e76b3183f1304042 (patch) | |
tree | 0db3f56340e8c55a559e96762742ec925dbca68d /build2/cc/link-rule.cxx | |
parent | a797f6dd584c6f25bac7b0ed122ea7d1d9a42684 (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/link-rule.cxx')
-rw-r--r-- | build2/cc/link-rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index 6c6aa0d..cffd731 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -1689,7 +1689,7 @@ namespace build2 path& mf (p.first); bool mf_cf (p.second); // Changed flag (timestamp resolution). - timestamp mf_mt (file_mtime (mf)); + timestamp mf_mt (mtime (mf)); if (tsys == "mingw32") { @@ -1699,7 +1699,7 @@ namespace build2 // manifest = mf + ".o"; - if (mf_mt > file_mtime (manifest) || mf_cf) + if (mf_mt > mtime (manifest) || mf_cf) { path of (relative (manifest)); |