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

Commit 91c478e

Browse files
committed
Always use Cpu count = 1
On windows we used to be able to build in parallel, but that’s not working so well anymore.
1 parent 3923198 commit 91c478e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build.cake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,9 @@ var REFERENCE_DOCS_PACKAGELIST_URL = REFERENCE_DOCS_URL + "android/support/packa
4646
// We grab the previous release's api-info.xml to use as a comparison for this build's generated info to make an api-diff
4747
var BASE_API_INFO_URL = "https://github.com/xamarin/AndroidSupportComponents/releases/download/26.1.0/api-info.xml";
4848

49-
var CPU_COUNT = System.Environment.ProcessorCount;
49+
var CPU_COUNT = 1;
5050
var USE_MSBUILD_ON_MAC = true;
5151

52-
// MSBUILD has issues on *nix/osx with a different CPU Count being specified
53-
if (!IsRunningOnWindows())
54-
CPU_COUNT = 1;
55-
5652
var ARTIFACTS = new [] {
5753
new ArtifactInfo (ARCH_CORE_PKG_NAME, "common", "Xamarin.Android.Arch.Core.Common", ARCH_CORE_COMMON_AAR_VERSION, ARCH_CORE_COMMON_NUGET_VERSION, "1.0.0.0", true) { PathPrefix = "arch-core/" },
5854
new ArtifactInfo (ARCH_LIFECYCLE_PKG_NAME, "common", "Xamarin.Android.Arch.Lifecycle.Common", ARCH_LIFECYCLE_COMMON_AAR_VERSION, ARCH_LIFECYCLE_COMMON_NUGET_VERSION, "1.0.0.0", true) { PathPrefix = "arch-lifecycle/" },

0 commit comments

Comments
 (0)