aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-17 16:57:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-17 16:57:49 +0200
commitb5960ebbe7236eef62620b0a07df8de93dffc81e (patch)
treec95f4f54ca67a9886211d2c27b0a2a2fef5012e6 /build2/b.cli
parentfdb3931c1948fbf9d56c98165f411aa5abf1b02d (diff)
Shorten scheduler queue depth, make it customizable via command line
Diffstat (limited to 'build2/b.cli')
-rw-r--r--build2/b.cli10
1 files changed, 10 insertions, 0 deletions
diff --git a/build2/b.cli b/build2/b.cli
index f1fd7dc..726f04e 100644
--- a/build2/b.cli
+++ b/build2/b.cli
@@ -380,6 +380,16 @@ namespace build2
on 64-bit. See the build system scheduler implementation for details."
}
+ size_t --queue-depth|-Q = 4
+ {
+ "<num>",
+ "The queue depth as a multiplier over the number of active jobs.
+ Normally we want a deeper queue if the jobs take long (for example,
+ compilation) and shorter if they are quick (for example, simple tests).
+ The default is 4. See the build system scheduler implementation for
+ details."
+ }
+
bool --serial-stop|-s
{
"Run serially and stop at the first error. This mode is useful to