aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-24 16:18:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-24 16:18:20 +0200
commitfd0ce3ab9a6caf1e29b3d3a074e51d29d51aa5b4 (patch)
treee499334feb6565c5486c6134222ebf5c4ddf6f5b
parentc82bbe9150742ca020291b3e3407472b3527024b (diff)
Add back backwards modification time workaround for FreeBSD
Seems like it's still needed in some tight situations (e.g., in rule).
-rw-r--r--build2/depdb.cxx10
1 files 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