From fd0ce3ab9a6caf1e29b3d3a074e51d29d51aa5b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 24 Nov 2018 16:18:20 +0200 Subject: Add back backwards modification time workaround for FreeBSD Seems like it's still needed in some tight situations (e.g., in rule). --- build2/depdb.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build2/depdb.cxx b/build2/depdb.cxx index 2e1d46a..a77a1a8 100644 --- a/build2/depdb.cxx +++ b/build2/depdb.cxx @@ -334,10 +334,10 @@ namespace build2 else is_.close (); - /* -#if defined(_WIN32) || defined(__FreeBSD__) +#if /*defined(_WIN32) ||*/ defined(__FreeBSD__) if (state_ == state::write) { + /* #ifdef _WIN32 auto file_mtime_h = [&to_timestamp] (const path_type& p) -> timestamp { @@ -368,11 +368,15 @@ namespace build2 assert (file_mtime_h (path) == mt); } #else + */ + mtime = file_mtime (path); // Save for check below. + + /* #endif + */ } #endif - */ } #ifdef BUILD2_MTIME_CHECK -- cgit v1.1