Merge "Save approx 18GB of RAM by not having a bazillion copies of the same modules names" am: 735320a9d7

Original change: https://android-review.googlesource.com/c/platform/build/+/2556850

Change-Id: Ie384802be1ad23f293901c1fc4e766eb448785ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Joe Onorato 2023-04-24 21:31:52 +00:00 committed by Automerger Merge Worker
commit 5f647df78d

View file

@ -597,7 +597,7 @@ endef
define declare-copy-target-license-metadata define declare-copy-target-license-metadata
$(strip $(if $(filter $(OUT_DIR)%,$(2)),\ $(strip $(if $(filter $(OUT_DIR)%,$(2)),\
$(eval _tgt:=$(strip $(1)))\ $(eval _tgt:=$(strip $(1)))\
$(eval ALL_COPIED_TARGETS.$(_tgt).SOURCES := $(ALL_COPIED_TARGETS.$(_tgt).SOURCES) $(filter $(OUT_DIR)%,$(2)))\ $(eval ALL_COPIED_TARGETS.$(_tgt).SOURCES := $(sort $(ALL_COPIED_TARGETS.$(_tgt).SOURCES) $(filter $(OUT_DIR)%,$(2))))\
$(eval ALL_COPIED_TARGETS += $(_tgt)))) $(eval ALL_COPIED_TARGETS += $(_tgt))))
endef endef