summaryrefslogtreecommitdiff
path: root/rust/library.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2025-02-03 16:16:34 +0000
committer Ivan Lozano <ivanlozano@google.com> 2025-02-03 16:48:02 +0000
commit3cc1daf1841ad9890e0ee84fcc1df2f9877cab0f (patch)
treeb10519c1a1920d30fbd0d622c6812e66643d6cb8 /rust/library.go
parente068e0cb169335d5c76a27aba7f77088c52fb060 (diff)
rust: Don't produce coverage variants for stublibs
Stubs don't have code by definition, so we shouldn't be producing coverage variants for them. Bug: 393556022 Test: m <cov stubs> # inidicates target no longer exists Change-Id: I82a2848075259b9f115b19c46019ada3d29bad41
Diffstat (limited to 'rust/library.go')
-rw-r--r--rust/library.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/library.go b/rust/library.go
index 95e7099a6..3686bf972 100644
--- a/rust/library.go
+++ b/rust/library.go
@@ -202,6 +202,9 @@ type libraryInterface interface {
}
func (library *libraryDecorator) nativeCoverage() bool {
+ if library.BuildStubs() {
+ return false
+ }
return true
}