Instead of using `x := $(x) foo`, make sure `x` is initialized first, then use `x += foo`. For a aosp-master/aosp_crosshatch-userdebug build, this takes the build from 49s to 33s (no significant difference in peak memory) Bug: 158488548 Test: build-aosp_crosshatch.ninja is the same before/after Change-Id: I41fb7611030dd3ba824f896a9c9eadbdd218f464 Merged-In: I41fb7611030dd3ba824f896a9c9eadbdd218f464 (cherry picked from commit fd1e67b8ce041c96ddb8ca99a375182f50fad7a4)gugelfrei-debug
parent
e88ef9299a
commit
74a1a483fc
Loading…
Reference in new issue