diff options
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index 179fca6..9397e5f 100644 --- a/src/build.h +++ b/src/build.h @@ -98,7 +98,7 @@ struct CommandRunner { /// Options (e.g. verbosity, parallelism) passed to a build. struct BuildConfig { BuildConfig() : verbosity(NORMAL), dry_run(false), parallelism(1), - failures_allowed(1) {} + failures_allowed(1), max_load_average(-0.0f) {} enum Verbosity { NORMAL, @@ -109,6 +109,9 @@ struct BuildConfig { bool dry_run; int parallelism; int failures_allowed; + /// The maximum load average we must not exceed. A negative value + /// means that we do not have any limit. + double max_load_average; }; /// Builder wraps the build process: starting commands, updating status. |