diff options
Diffstat (limited to 'build2/cli')
-rw-r--r-- | build2/cli/rule.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index cc3e5dd..2da5802 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -322,9 +322,11 @@ namespace build2 else if (verb) text << "cli " << s; - run (cli, args); - - dd.check_mtime (tp); + if (!dry_run) + { + run (cli, args); + dd.check_mtime (tp); + } t.mtime (system_clock::now ()); return target_state::changed; |