aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index b0a9abf..945d375 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -451,7 +451,13 @@ main (int argc, char* argv[])
fail << "invalid --max-jobs|-J value";
}
- sched.startup (jobs, 1, max_jobs, jobs * ops.queue_depth ());
+ sched.startup (jobs,
+ 1,
+ max_jobs,
+ jobs * ops.queue_depth (),
+ (ops.max_stack_specified ()
+ ? optional<size_t> (ops.max_stack () * 1024)
+ : nullopt));
variable_cache_mutex_shard_size = sched.shard_size ();
variable_cache_mutex_shard.reset (