Fix broken foreach loop
This wasn't initializing the STATS.MODULE_TYPE.* variables, leading to 106kB of stack usage in ckati for sdk_x86_64-eng. With this fixed, the next highest stack usage is 35kB. Bug: 36182021 Test: Run $(flavor) over all the variables Test: Check stack usage with custom ckati patches Test: build-sdk_x86_64.ninja is identical before/after this change Change-Id: Id1d8ffb8415ad6613d0093d31be5472d42d300fd
This commit is contained in:
@@ -2962,7 +2962,7 @@ STATS.MODULE_TYPE := \
|
||||
base_rules \
|
||||
HEADER_LIBRARY
|
||||
|
||||
$(foreach $(s),$(STATS.MODULE_TYPE),$(eval STATS.MODULE_TYPE.$(s) :=))
|
||||
$(foreach s,$(STATS.MODULE_TYPE),$(eval STATS.MODULE_TYPE.$(s) :=))
|
||||
define record-module-type
|
||||
$(strip $(if $(LOCAL_RECORDED_MODULE_TYPE),,
|
||||
$(if $(filter-out $(SOONG_ANDROID_MK),$(LOCAL_MODULE_MAKEFILE)),
|
||||
|
||||
Reference in New Issue
Block a user