commit | 2c7fb2df082b842fbc53e02744e27acc8c1dd0ed | [log] [tgz] |
---|---|---|
author | Qing Shen <qingshen@google.com> | Wed Aug 14 01:21:56 2024 +0000 |
committer | Qing Shen <qingshen@google.com> | Wed Aug 14 01:21:56 2024 +0000 |
tree | 01df9a95ec8f28d12beacc415ae5669ad72ee14a | |
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
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.