Merge "Override module's C flags when coverage is enabled"
This commit is contained in:
commit
e67c20ce90
|
@ -53,6 +53,10 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags) Flags {
|
||||||
flags.Coverage = true
|
flags.Coverage = true
|
||||||
flags.GlobalFlags = append(flags.GlobalFlags, "--coverage", "-O0")
|
flags.GlobalFlags = append(flags.GlobalFlags, "--coverage", "-O0")
|
||||||
cov.linkCoverage = true
|
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
|
// Even if we don't have coverage enabled, if any of our object files were compiled
|
||||||
|
|
Loading…
Reference in New Issue