Merge "Override module's C flags when coverage is enabled"

am: e67c20ce90

Change-Id: Ic29108df7012a011f2d4878b57fba10e5accf957
This commit is contained in:
Pirama Arumuga Nainar 2019-02-19 21:50:55 -08:00 committed by android-build-merger
commit 38bda6ed46

View file

@ -53,6 +53,10 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags) Flags {
flags.Coverage = true
flags.GlobalFlags = append(flags.GlobalFlags, "--coverage", "-O0")
cov.linkCoverage = true
// Override -Wframe-larger-than and non-default optimization
// flags that the module may use.
flags.CFlags = append(flags.CFlags, "-Wno-frame-larger-than=", "-O0")
}
// Even if we don't have coverage enabled, if any of our object files were compiled