From 391cbc5409b422a3db6f5b400408542c7be1400b Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Fri, 11 Jan 2019 17:07:58 +0900 Subject: [PATCH] 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 --- core/goma.mk | 11 ----------- 1 file changed, 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 @@ # Notice: this works only with Google's Goma build infrastructure. ifneq ($(filter-out false,$(USE_GOMA)),) - # Goma requires a lot of processes and file descriptors. - # TODO(yyanagisawa): move these code to build/soong/uil/build/goma.go - ifeq ($(shell echo $$(($$(ulimit -u) < 2500 || $$(ulimit -n) < 16000))),1) - $(warning Max user processes and/or open files are insufficient) - ifeq ($(shell uname),Darwin) - $(error See go/ma/how-to-use-goma/how-to-use-goma-for-android to relax the limit) - else - $(error Adjust the limit by ulimit -u and ulimit -n) - endif - endif - ifdef GOMA_DIR goma_dir := $(GOMA_DIR) else