Skip to content

Commit

Permalink
Force a single CPU on macOS/Linux (#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Feb 2, 2022
1 parent a6078ae commit 588db33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cake/msbuild.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 588db33

Please sign in to comment.