Merge "[coverage] Wrap calls to open"

This commit is contained in:
Pirama Arumuga Nainar
2020-12-11 17:42:09 +00:00
committed by Gerrit Code Review

View File

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