From 588db3399b9ea15888949f1499229cf6c321731f Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 3 Feb 2022 00:55:13 +0200 Subject: [PATCH] Force a single CPU on macOS/Linux (#1944) --- cake/msbuild.cake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cake/msbuild.cake b/cake/msbuild.cake index 8ce4dc83..a92700d2 100644 --- a/cake/msbuild.cake +++ b/cake/msbuild.cake @@ -59,7 +59,11 @@ void RunMSBuild( MSBuild(solution, c => { c.Configuration = configuration ?? CONFIGURATION; c.Verbosity = VERBOSITY; - c.MaxCpuCount = 0; + + if (IsRunningOnWindows()) + c.MaxCpuCount = 0; + else + c.MaxCpuCount = 1; var relativeSolution = MakeAbsolute(ROOT_PATH).GetRelativePath(MakeAbsolute(solution)); var blPath = ROOT_PATH.Combine("output/logs/binlogs").CombineWithFilePath(relativeSolution + ".binlog");