From 6e126ac30038502acf7016f0e76b3183f1304042 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 3 Apr 2019 21:19:50 +0300 Subject: 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. --- build2/target.ixx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/target.ixx') diff --git a/build2/target.ixx b/build2/target.ixx index c3e2f63..dcbea32 100644 --- a/build2/target.ixx +++ b/build2/target.ixx @@ -4,6 +4,8 @@ #include // memcpy() +#include // mtime() + namespace build2 { // target @@ -314,7 +316,7 @@ namespace build2 { assert (!p.empty ()); - r = file_mtime (p).time_since_epoch ().count (); + r = build2::mtime (p).time_since_epoch ().count (); mtime_.store (r, memory_order_release); } -- cgit v1.1