summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-09-19 04:25:32 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-09-19 04:25:32 (GMT)
commit213c44a51c1309f0b03a7c2763a7599c8cb9a41f (patch)
treefd9bd9ab4b5a973b0f777947093d3b6b949cbf6c /src/deps_log.h
parent2b63e14756f4b6132341e842fed26f034a921438 (diff)
downloadNinja-213c44a51c1309f0b03a7c2763a7599c8cb9a41f.zip
Ninja-213c44a51c1309f0b03a7c2763a7599c8cb9a41f.tar.gz
Ninja-213c44a51c1309f0b03a7c2763a7599c8cb9a41f.tar.bz2
Don't print "Recompacting..." message from tests.
Now tests don't print anything. Non-test behavior is unchanged.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index cec0257..9b81bc1 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -64,7 +64,7 @@ struct State;
/// wins, allowing updates to just be appended to the file. A separate
/// repacking step can run occasionally to remove dead records.
struct DepsLog {
- DepsLog() : needs_recompaction_(false), file_(NULL) {}
+ DepsLog() : needs_recompaction_(false), quiet_(false), file_(NULL) {}
~DepsLog();
// Writing (build-time) interface.
@@ -87,6 +87,7 @@ struct DepsLog {
/// Rewrite the known log entries, throwing away old data.
bool Recompact(const string& path, string* err);
+ void set_quiet(bool quiet) { quiet_ = quiet; }
/// Returns if the deps entry for a node is still reachable from the manifest.
///
@@ -108,6 +109,7 @@ struct DepsLog {
bool RecordId(Node* node);
bool needs_recompaction_;
+ bool quiet_;
FILE* file_;
/// Maps id -> Node.