Files
build_soong/ui
Dan Willemsen 71b2daf9da Fix some problems with soong metrics loading
If we didn't need to run soong_build during the current run, we still
try to load the soong metrics. But in the case of `dist`, that's in a
directory that is not guaranteed to persist between runs.

Make loading the soong metrics optional if the file does not exist. Also
fixes a variable shadowing issue that meant we never passed it into
ctx.Metrics.

Test: treehugger
Change-Id: Ic836282f4d13e91daa0e7241ad7c488de3293d8b
(cherry picked from commit de3604453f)
Merged-In: Ic836282f4d13e91daa0e7241ad7c488de3293d8b
2022-07-01 22:03:55 +00:00
..
2021-07-23 11:12:05 -07:00