aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-buildscript.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-14 13:24:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-14 13:24:47 +0200
commit493a375346522a0944d4fb5893cc4740e5b2f743 (patch)
tree99dcc655ebf220d85ec942a13f354accc0f4e30e /libbuild2/adhoc-rule-buildscript.cxx
parent6016250ee9d6753e4363e138f049845b8dd10d30 (diff)
Use dry_run_option instead of dry_run during match
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r--libbuild2/adhoc-rule-buildscript.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx
index 61a9e21..ab5706c 100644
--- a/libbuild2/adhoc-rule-buildscript.cxx
+++ b/libbuild2/adhoc-rule-buildscript.cxx
@@ -1159,7 +1159,7 @@ namespace build2
// Note that in case of dry run we will have an incomplete (but valid)
// database which will be updated on the next non-dry run.
//
- if (!update || ctx.dry_run)
+ if (!update || ctx.dry_run_option)
dd.close (false /* mtime_check */);
else
mdb->dd = dd.close_to_reopen ();
@@ -1195,7 +1195,7 @@ namespace build2
md->deferred_failure);
}
- if (update && dd.reading () && !ctx.dry_run)
+ if (update && dd.reading () && !ctx.dry_run_option)
dd.touch = timestamp_unknown;
dd.close (false /* mtime_check */);