Merge "[cc/coverage] Define a macro during coverage builds" am: cb56f0166f

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689270

Change-Id: I6025724bc9559d0b9a754ebf316deef8e42b13dd
This commit is contained in:
Pirama Arumuga Nainar
2021-05-21 21:02:45 +00:00
committed by Automerger Merge Worker

View File

@@ -96,7 +96,8 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags
// flags that the module may use. // flags that the module may use.
flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-frame-larger-than=", "-O0") flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-frame-larger-than=", "-O0")
} else if clangCoverage { } else if clangCoverage {
flags.Local.CommonFlags = append(flags.Local.CommonFlags, profileInstrFlag, "-fcoverage-mapping", "-Wno-pass-failed") flags.Local.CommonFlags = append(flags.Local.CommonFlags, profileInstrFlag,
"-fcoverage-mapping", "-Wno-pass-failed", "-D__ANDROID_CLANG_COVERAGE__")
} }
} }