diff options
author | 2024-08-13 02:04:53 +0000 | |
---|---|---|
committer | 2024-08-13 02:04:53 +0000 | |
commit | 9e05d1c5cdc6b263cac19e9a78f791b0d63c8921 (patch) | |
tree | ef9b39237e6ad5322c788a6b3d23de543ec94ac4 /java/app_test.go | |
parent | 77cd0a0080637568b3332f50555b3e030a36e463 (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: I972aec20a9d97b223cc833ee245016ac4b0f09a2
Diffstat (limited to 'java/app_test.go')
0 files changed, 0 insertions, 0 deletions