aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYoshisato Yanagisawa2019-01-11 02:07:58 -0600
committerYoshisato Yanagisawa2019-01-11 02:07:58 -0600
commit391cbc5409b422a3db6f5b400408542c7be1400b (patch)
tree98934a8d2c3d3f68463f3e5fd4d403a5e7db9016 /core
parentbdf0ec03b67f044fa9f9d1a5ab488b0fe96445b5 (diff)
downloadplatform-build-391cbc5409b422a3db6f5b400408542c7be1400b.tar.gz
platform-build-391cbc5409b422a3db6f5b400408542c7be1400b.tar.xz
platform-build-391cbc5409b422a3db6f5b400408542c7be1400b.zip
Remove Goma resource check code.
Since resource check has been done in Soong, we do not need that here. Bug: 118390303 Test: treehugger Change-Id: Ib9d0862c65c6dc6e7fd7563995a9a335b3185786 Signed-off-by: Yoshisato Yanagisawa <yyanagisawa@google.com>
Diffstat (limited to 'core')
-rw-r--r--core/goma.mk11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/goma.mk b/core/goma.mk
index f5064e621..c265259da 100644
--- a/core/goma.mk
+++ b/core/goma.mk
@@ -16,17 +16,6 @@
16 16
17# Notice: this works only with Google's Goma build infrastructure. 17# Notice: this works only with Google's Goma build infrastructure.
18ifneq ($(filter-out false,$(USE_GOMA)),) 18ifneq ($(filter-out false,$(USE_GOMA)),)
19 # Goma requires a lot of processes and file descriptors.
20 # TODO(yyanagisawa): move these code to build/soong/uil/build/goma.go
21 ifeq ($(shell echo $$(($$(ulimit -u) < 2500 || $$(ulimit -n) < 16000))),1)
22 $(warning Max user processes and/or open files are insufficient)
23 ifeq ($(shell uname),Darwin)
24 $(error See go/ma/how-to-use-goma/how-to-use-goma-for-android to relax the limit)
25 else
26 $(error Adjust the limit by ulimit -u and ulimit -n)
27 endif
28 endif
29
30 ifdef GOMA_DIR 19 ifdef GOMA_DIR
31 goma_dir := $(GOMA_DIR) 20 goma_dir := $(GOMA_DIR)
32 else 21 else