Merge changes I728208ed,Ifdb50809

* changes:
  [cc] Add per-file OWNERS for cc/coverage.go
  [cc/coverage] Override/disable -Wframe-larger-than
This commit is contained in:
Treehugger Robot 2022-01-27 22:17:29 +00:00 committed by Gerrit Code Review
commit 428d5ad909
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
per-file ndk_*.go = danalbert@google.com
per-file tidy.go = srhines@google.com, chh@google.com
per-file afdo.go,afdo_test.go,lto.go,pgo.go = srhines@google.com, pirama@google.com, yikong@google.com
per-file coverage.go = pirama@google.com, srhines@google.com, allenhair@google.com

View file

@ -98,6 +98,9 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags
} else if clangCoverage {
flags.Local.CommonFlags = append(flags.Local.CommonFlags, profileInstrFlag,
"-fcoverage-mapping", "-Wno-pass-failed", "-D__ANDROID_CLANG_COVERAGE__")
// Override -Wframe-larger-than. We can expect frame size increase after
// coverage instrumentation.
flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-frame-larger-than=")
}
}