Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 918369d

Browse files
authored
Add support for maxcpucount
1 parent ee470f0 commit 918369d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.cake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
var TARGET = Argument ("t", Argument ("target", "Default"));
1717
var BUILD_CONFIG = Argument ("config", "Release");
1818
var VERBOSITY = (Verbosity) Enum.Parse (typeof(Verbosity), Argument ("v", Argument ("verbosity", "Normal")), true);
19+
var CPUS = Int.Parse(Argument("maxcpucount", "-1"));
20+
int? MAX_CPU_COUNT = CPUS < 0 ? (int?)null : (int?)CPUS;
1921

2022
// Lists all the artifacts and their versions for com.android.support.*
2123
// https://dl.google.com/dl/android/maven2/com/android/support/group-index.xml
@@ -122,6 +124,7 @@ Task("nuget")
122124
{
123125
MSBuild ("./generated/AndroidSupport.sln", c => {
124126
c.Configuration = "Release";
127+
c.MaxCpuCount = MAX_CPU_COUNT;
125128
c.Targets.Clear();
126129
c.Targets.Add("Pack");
127130
c.Properties.Add("PackageOutputPath", new [] { MakeAbsolute(new FilePath("./output")).FullPath });

0 commit comments

Comments
 (0)