Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2021-05-07 18:20:34 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2021-05-07 18:20:34 +0300
commite937c087a0455ab0b2a098c47fba48adfe61a5f0 (patch)
tree8658017089a20ba302d617ab1e329b1fcd83236b
parent3ffd8fd46b4a50039ba6e3888f71b13845ada4c9 (diff)
sdks: Disable parallelism for mxe llvmwin64 build
For some reason it recently fails with weird race conditions, let's see if that helps.
-rw-r--r--llvm/build.mk2
-rw-r--r--sdks/builds/llvm.mk1
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/build.mk b/llvm/build.mk
index 7de175baee2..a66200d07de 100644
--- a/llvm/build.mk
+++ b/llvm/build.mk
@@ -9,7 +9,7 @@ LLVM_VERSION := $(shell git -C "$(abs_top_srcdir)/external/llvm-project/llvm" re
# FIXME: URL should be http://xamjenkinsartifact.blob.core.windows.net/build-package-osx-llvm-$(LLVM_BRANCH)/llvm-osx64-$(LLVM_VERSION).tar.gz
LLVM_DOWNLOAD_LOCATION = "http://xamjenkinsartifact.blob.core.windows.net/build-package-osx-llvm-release60/llvm-osx64-$(LLVM_VERSION).tar.gz"
-CPU_COUNT := $(shell getconf _NPROCESSORS_ONLN || echo 8)
+CPU_COUNT ?= $(shell getconf _NPROCESSORS_ONLN || echo 8)
CMAKE := $(or $(CMAKE),$(shell which cmake))
NINJA := $(shell which ninja)
diff --git a/sdks/builds/llvm.mk b/sdks/builds/llvm.mk
index 5c862dfefcd..95fef0cb208 100644
--- a/sdks/builds/llvm.mk
+++ b/sdks/builds/llvm.mk
@@ -114,6 +114,7 @@ setup-llvm-$(1):
.PHONY: package-llvm-$(1)
package-llvm-$(1): $$(TOP)/external/llvm-project/llvm/cmake/modules/$(3).cmake setup-llvm-$(1)
$$(MAKE) -C $$(TOP)/llvm -f build.mk install-llvm \
+ CPU_COUNT=1 \
LLVM_BUILD="$$(TOP)/sdks/builds/llvm-$(1)" \
LLVM_PREFIX="$$(TOP)/sdks/out/llvm-$(1)" \
LLVM_CMAKE_ARGS="$$(_llvm-$(1)_CMAKE_ARGS)"