diff options
| author | Jiyong Park <jiyong@google.com> | 2019-08-09 14:44:36 +0900 |
|---|---|---|
| committer | Jiyong Park <jiyong@google.com> | 2019-08-16 00:01:18 +0900 |
| commit | 49932f3e6975f5a39d8f9f5b064431d105740ada (patch) | |
| tree | ff6e1a682bd4c163d2811660a474d3c0bf701529 /cc/binary.go | |
| parent | 1bc40c56b9f9f02191d14bf9812101e0ae55bb2f (diff) | |
| download | build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.tar.gz build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.tar.bz2 build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.zip | |
Build native coverage variant of APEXes when needed
When the native coverage is enabled, APEXes (and files there) are built
for native coverage as well.
Bug: 138952487
Test: make -j NATIVE_COVERAGE=true COVERAGE_PATHS='*' com.android.resolv
find out -name "*.gcno" | grep DnsResolver shows files
Test: libnetd_resolv.zip is found under
$(TARGET_OUT)/apex/com.android.resolv/lib directory
Merged-In: I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4
(cherry picked from commit ee9a98d88ec9a792c3d67b9aed9e4571bf2544cf)
Change-Id: I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4
Diffstat (limited to 'cc/binary.go')
| -rw-r--r-- | cc/binary.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/binary.go b/cc/binary.go index 666e8849..d7d7e4f0 100644 --- a/cc/binary.go +++ b/cc/binary.go @@ -421,6 +421,10 @@ func (binary *binaryDecorator) nativeCoverage() bool { return true } +func (binary *binaryDecorator) coverageOutputFilePath() android.OptionalPath { + return binary.coverageOutputFile +} + // /system/bin/linker -> /apex/com.android.runtime/bin/linker func (binary *binaryDecorator) installSymlinkToRuntimeApex(ctx ModuleContext, file android.Path) { dir := binary.baseInstaller.installDir(ctx) |
