summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-16 18:31:43 (GMT)
committerEvan Martin <martine@danga.com>2012-01-16 18:31:43 (GMT)
commit63013b3bd5ca79d454a95a6f985d98f16f21da1c (patch)
treef05edbc76e32b273bfd079df4cd097050e941cac /src/build.cc
parent25a3bb074633dc1217f7fd2bc3702d12d20c1761 (diff)
parent63ccd6065504862963574dd93340a0e9c7ad35f6 (diff)
downloadNinja-63013b3bd5ca79d454a95a6f985d98f16f21da1c.zip
Ninja-63013b3bd5ca79d454a95a6f985d98f16f21da1c.tar.gz
Ninja-63013b3bd5ca79d454a95a6f985d98f16f21da1c.tar.bz2
Merge pull request #197 from doctorlove/simple_dry_run
Simple dry run
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc2
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();