From 2908afbd6a9222b718c0f910edfbe2fc5943aad8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Nov 2021 10:21:09 +0200 Subject: Avoid unnecessary work in depdb::close() if using static check_mtime() --- libbuild2/adhoc-rule-buildscript.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/adhoc-rule-buildscript.cxx') diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index e8bc20d..b981b8d 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -505,7 +505,7 @@ namespace build2 if (update && dd.reading () && !ctx.dry_run) dd.touch = timestamp_unknown; - dd.close (); + dd.close (false /* mtime_check */); md->dd = move (dd.path); // Pass on base scope and update/mtime. -- cgit v1.1