diff options
| author | 2024-08-14 01:21:56 +0000 | |
|---|---|---|
| committer | 2024-08-14 01:21:56 +0000 | |
| commit | 2c7fb2df082b842fbc53e02744e27acc8c1dd0ed (patch) | |
| tree | 01df9a95ec8f28d12beacc415ae5669ad72ee14a /tools/warn/java_warn_patterns.py | |
| parent | 0a7e037a9ae2c0b67672c3d0d17be6fc07a0d8a2 (diff) | |
Add a coverage suffix to avoid Ninja file regeneration.
This CL uses the environment variable, EMMA_INSTRUMENT to determine whether or not coverage is enabled. If coverage is enabled, it adds a bunch of suffixes to the files generated in out/soong/ folders.
This change reduces the build time by avoiding ninja regeneration when users simply switches from atest to atest --experimental-coverage, or vice versa, and no Android.bp changes are made.
Bug: 331444846
Test: Locally run m libc, and then EMMA_INSTRUMENT m libc twice, no ninja regenerations required. Compared the hash of out/target/product/vsoc_x86_64/ between the before-change repo and after-change repo. Only diff is the after-change directory contains an extra file `out/target/product/vsoc_x86_64/.installable_files` while the original directory has only `out/target/product/vsoc_x86_64/.installable_files.previous`, both files have the same hash.
Change-Id: I91eb1134ac552f47a40f3d5ddaab630d146b0773
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions