aboutsummaryrefslogtreecommitdiff
path: root/cc/binary.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-08-09 14:44:36 +0900
committerJiyong Park <jiyong@google.com>2019-08-13 08:55:08 +0900
commitee9a98d88ec9a792c3d67b9aed9e4571bf2544cf (patch)
treed8af68026356f9509f21d1184edc55d01c73b587 /cc/binary.go
parent02ed5df4aca361954383c85b3f23c0693f6edc92 (diff)
downloadsoong-ee9a98d88ec9a792c3d67b9aed9e4571bf2544cf.tar.gz
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 Change-Id: I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4
Diffstat (limited to 'cc/binary.go')
-rw-r--r--cc/binary.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/binary.go b/cc/binary.go
index 149a92e80..fd00060c4 100644
--- a/cc/binary.go
+++ b/cc/binary.go
@@ -425,6 +425,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)