diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-31 10:10:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | 37a3a93c56efb9ed1030debfd7a68d56d8557327 (patch) | |
tree | 9fa70f8391568269b76fce45b2670d08dd52bc31 | |
parent | b9262da995ed8f9529496e422c6c0344730b3707 (diff) |
Temporarily disable parallel search & match for multi-target builds
-rw-r--r-- | build2/operation.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx index 0ade4bb..6e8511d 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -94,6 +94,9 @@ namespace build2 { phase_guard pg (run_phase::search_match); + if (ts.size () > 1) + sched.tune (1); //@@ MT TMP run serially. + scheduler::atomic_count task_count (0); { model_slock ml; @@ -113,6 +116,8 @@ namespace build2 } } sched.wait (task_count); + + sched.tune (0); //@@ MT TMP run serially restore. } if (verb >= 6) |