aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-02-05 02:13:57 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-02-05 02:13:57 +0000
commita4f4c0d08088a3bd8d00257e058d1bdfc093b1f8 (patch)
treea861806004653c8cb5543528356938bcd9b2497f /cc/cc.go
parent30977d507dd15b7df366b467f4012a3c75a25775 (diff)
parent8ee870a540764c8b8ca538fec4ddf18d056b6ec4 (diff)
downloadbuild_soong-a4f4c0d08088a3bd8d00257e058d1bdfc093b1f8.tar.gz
build_soong-a4f4c0d08088a3bd8d00257e058d1bdfc093b1f8.tar.bz2
build_soong-a4f4c0d08088a3bd8d00257e058d1bdfc093b1f8.zip
Snap for 6182290 from 8ee870a540764c8b8ca538fec4ddf18d056b6ec4 to qt-qpr3-releaseandroid-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37
Change-Id: I0b819cd37a1f6a04d0e2dcf61e3457e5711e94a8
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index f2a51da3..49dce18f 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -314,6 +314,7 @@ type linker interface {
unstrippedOutputFilePath() android.Path
nativeCoverage() bool
+ coverageOutputFilePath() android.OptionalPath
}
type installer interface {
@@ -423,6 +424,13 @@ func (c *Module) UnstrippedOutputFile() android.Path {
return nil
}
+func (c *Module) CoverageOutputFile() android.OptionalPath {
+ if c.linker != nil {
+ return c.linker.coverageOutputFilePath()
+ }
+ return android.OptionalPath{}
+}
+
func (c *Module) RelativeInstallPath() string {
if c.installer != nil {
return c.installer.relativeInstallPath()