Merge "Override module's C flags when coverage is enabled"
am: e67c20ce90
Change-Id: Ic29108df7012a011f2d4878b57fba10e5accf957
This commit is contained in:
commit
38bda6ed46
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue