From 37a3a93c56efb9ed1030debfd7a68d56d8557327 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 31 Jan 2017 10:10:28 +0200 Subject: Temporarily disable parallel search & match for multi-target builds --- build2/operation.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/operation.cxx') 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) -- cgit v1.1