diff options
Diffstat (limited to 'cc/binary.go')
-rw-r--r-- | cc/binary.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/binary.go b/cc/binary.go index afc8a990..521ccb70 100644 --- a/cc/binary.go +++ b/cc/binary.go @@ -79,6 +79,9 @@ type binaryDecorator struct { // Names of symlinks to be installed for use in LOCAL_MODULE_SYMLINKS symlinks []string + + // Output archive of gcno coverage information + coverageOutputFile android.OptionalPath } var _ linker = (*binaryDecorator)(nil) @@ -299,6 +302,10 @@ func (binary *binaryDecorator) link(ctx ModuleContext, deps.LateStaticLibs, deps.WholeStaticLibs, linkerDeps, deps.CrtBegin, deps.CrtEnd, true, builderFlags, outputFile) + objs.coverageFiles = append(objs.coverageFiles, deps.StaticLibObjs.coverageFiles...) + objs.coverageFiles = append(objs.coverageFiles, deps.WholeStaticLibObjs.coverageFiles...) + binary.coverageOutputFile = TransformCoverageFilesToLib(ctx, objs, builderFlags, binary.getStem(ctx)) + return ret } |