diff options
author | Frances Buontempo <frances.buontempo@gmail.com> | 2012-01-16 14:17:37 (GMT) |
---|---|---|
committer | Frances Buontempo <frances.buontempo@gmail.com> | 2012-01-16 14:17:37 (GMT) |
commit | 63ccd6065504862963574dd93340a0e9c7ad35f6 (patch) | |
tree | f05edbc76e32b273bfd079df4cd097050e941cac /src/build.cc | |
parent | 337d059edc8c9ed6db83d04c7eeb5d38f2595f6c (diff) | |
download | Ninja-63ccd6065504862963574dd93340a0e9c7ad35f6.zip Ninja-63ccd6065504862963574dd93340a0e9c7ad35f6.tar.gz Ninja-63ccd6065504862963574dd93340a0e9c7ad35f6.tar.bz2 |
Add a test that dry run shows all commands that could be run (none
cleaned) and a fix for this
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index ebf63b2..94c9d77 100644 --- a/src/build.cc +++ b/src/build.cc @@ -572,7 +572,7 @@ void Builder::FinishEdge(Edge* edge, bool success, const string& output) { TimeStamp restat_mtime = 0; if (success) { - if (edge->rule().restat()) { + if (edge->rule().restat() && !config_.dry_run) { bool node_cleaned = false; for (vector<Node*>::iterator i = edge->outputs_.begin(); |