summaryrefslogtreecommitdiff
path: root/cc/coverage.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-12-10 16:36:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-12-10 16:36:26 +0000
commitd29a1a83c251f570d438487aafe51680e3ece76f (patch)
tree5ef00e68d76f138b49cc6dfea7d67a27edbe7ec0 /cc/coverage.go
parent110e0a8ff28d44c041226715f83182e7bb6a9e23 (diff)
parent6a730045b5bfcfdc3e0709f4283ade8a541dc618 (diff)
Merge changes I0bf0c186,I859cd636,Ie438d7a7,I30f82aea into main
* changes: Add and use staticLibrary() Convert WalkPayloadDeps from blueprint.Module to android.Module Remove AlwaysRequireApexVariantTag Move transition code to transition.go
Diffstat (limited to 'cc/coverage.go')
-rw-r--r--cc/coverage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/coverage.go b/cc/coverage.go
index a7618dd96..dbb424f59 100644
--- a/cc/coverage.go
+++ b/cc/coverage.go
@@ -145,7 +145,7 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags
// Even if we don't have coverage enabled, if any of our object files were compiled
// with coverage, then we need to add --coverage to our ldflags.
if !cov.linkCoverage {
- if ctx.static() && !ctx.staticBinary() {
+ if ctx.staticLibrary() {
// For static libraries, the only thing that changes our object files
// are included whole static libraries, so check to see if any of
// those have coverage enabled.