Merge "Save approx 18GB of RAM by not having a bazillion copies of the same modules names" into udc-dev

This commit is contained in:
LaMont Jones 2023-05-02 21:51:16 +00:00 committed by Android (Google) Code Review
commit c28fb44256

View file

@ -597,7 +597,7 @@ endef
define declare-copy-target-license-metadata
$(strip $(if $(filter $(OUT_DIR)%,$(2)),\
$(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))))
endef