Merge "[coverage] Wrap calls to open" am: d36c83862f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ief1ce6d0014e22aeb39b33d841bb758bd72dd70a
This commit is contained in:
Pirama Arumuga Nainar
2020-12-11 18:20:19 +00:00
committed by Automerger Merge Worker

View File

@@ -149,6 +149,7 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags
coverage := ctx.GetDirectDepWithTag(getClangProfileLibraryName(ctx), CoverageDepTag).(*Module) coverage := ctx.GetDirectDepWithTag(getClangProfileLibraryName(ctx), CoverageDepTag).(*Module)
deps.WholeStaticLibs = append(deps.WholeStaticLibs, coverage.OutputFile().Path()) deps.WholeStaticLibs = append(deps.WholeStaticLibs, coverage.OutputFile().Path())
flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--wrap,open")
} }
} }