summaryrefslogtreecommitdiff
path: root/rust/coverage.go
diff options
context:
space:
mode:
author Pirama Arumuga Nainar <pirama@google.com> 2022-01-18 13:02:05 -0800
committer Pirama Arumuga Nainar <pirama@google.com> 2022-01-18 13:13:47 -0800
commitaa966c56301ab5ec0f9e096f8a2938c963368426 (patch)
tree4c5b8a2463ad788fbc6f9cdec67bdd20d388f2fe /rust/coverage.go
parent54f311d0fbbfcef663518bdca7a4b066486562f0 (diff)
Revert memory mapped coverage
Bug: http://b/194128476 Bug: http://b/210012154 Reverts: e6840726bd255f141ae3dba614c9286528d71281 "[coverage] Override -Wframe-larger-than" 71d697c5cbaa6ad0b2d92ab70f3dd5b91d039582 "Enable memory-mapped coverage instrumentation" Coverage metrics dropped for ~10 of the 40 modules. There are also regressions in mainline when running tests on older platform builds. Test: presubmit Change-Id: I4a2b005d3b54764b762b5422e03b7a9ec8727227
Diffstat (limited to 'rust/coverage.go')
-rw-r--r--rust/coverage.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/rust/coverage.go b/rust/coverage.go
index 91d34acce..8fdfa2342 100644
--- a/rust/coverage.go
+++ b/rust/coverage.go
@@ -22,7 +22,6 @@ import (
var CovLibraryName = "libprofile-clang-extras"
-// Add '%c' to default specifier after we resolve http://b/210012154
const profileInstrFlag = "-fprofile-instr-generate=/data/misc/trace/clang-%p-%m.profraw"
type coverage struct {
@@ -71,10 +70,6 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags
"-Wl,-z,nostart-stop-gc",
)
deps.StaticLibs = append(deps.StaticLibs, coverage.OutputFile().Path())
- if cc.EnableContinuousCoverage(ctx) {
- flags.RustFlags = append(flags.RustFlags, "-C llvm-args=--runtime-counter-relocation")
- flags.LinkFlags = append(flags.LinkFlags, "-Wl,-mllvm,-runtime-counter-relocation")
- }
}
return flags, deps