diff options
author | Evan Martin <martine@danga.com> | 2011-02-01 18:14:43 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-02-01 18:14:43 (GMT) |
commit | 0d0f186053087c3705ee4c01f6b7f4bf7832c063 (patch) | |
tree | 3497f388a9b16caaa34ebe6ce8784fe31e478381 /src/build.h | |
parent | d093c24782c212b0d605dda70d9d5ed72846feda (diff) | |
download | Ninja-0d0f186053087c3705ee4c01f6b7f4bf7832c063.zip Ninja-0d0f186053087c3705ee4c01f6b7f4bf7832c063.tar.gz Ninja-0d0f186053087c3705ee4c01f6b7f4bf7832c063.tar.bz2 |
parallelism flag, guess based on cpuinfo
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index 843e907..a1d6d4c 100644 --- a/src/build.h +++ b/src/build.h @@ -60,7 +60,7 @@ struct CommandRunner { }; struct BuildConfig { - BuildConfig() : verbosity(NORMAL), dry_run(false) {} + BuildConfig() : verbosity(NORMAL), dry_run(false), parallelism(1) {} enum Verbosity { NORMAL, @@ -69,6 +69,7 @@ struct BuildConfig { }; Verbosity verbosity; bool dry_run; + int parallelism; }; struct Builder { |