diff options
author | Evan Martin <martine@danga.com> | 2010-12-14 16:37:48 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2010-12-14 16:37:48 (GMT) |
commit | a4b90fa428f6b1836854c089754c912f72c7bfb2 (patch) | |
tree | 00f84971f1c82b8dae9e8abc3e3fe90bc2e8c0fb /src/build.h | |
parent | bad6337f7cd39c557c392b19f8ac89e8ce190e2a (diff) | |
download | Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.zip Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.tar.gz Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.tar.bz2 |
verbosity tristate
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/build.h b/src/build.h index b79ffae..4574e20 100644 --- a/src/build.h +++ b/src/build.h @@ -58,9 +58,14 @@ struct CommandRunner { }; struct BuildConfig { - BuildConfig() : verbose(false), dry_run(false) {} - - bool verbose; + BuildConfig() : verbosity(NORMAL), dry_run(false) {} + + enum Verbosity { + NORMAL, + QUIET, // No output -- used when testing. + VERBOSE + }; + Verbosity verbosity; bool dry_run; }; |