Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f90bfdff authored by Kun Niu's avatar Kun Niu Committed by Automerger Merge Worker
Browse files

Merge "Use prebuild modules even when coverage is enabled." into sc-dev am:...

Merge "Use prebuild modules even when coverage is enabled." into sc-dev am: fe1d6c53 am: f8c99a80

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

Change-Id: I67a9d1fa60870012a336ca44a24202211ccbdd42
parents b52a5e8f f8c99a80
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -133,10 +133,6 @@ func (p *prebuiltCommon) checkForceDisable(ctx android.ModuleContext) bool {
	// to build the prebuilts themselves.
	forceDisable = forceDisable || ctx.Config().UnbundledBuild()

	// Force disable the prebuilts when coverage is enabled.
	forceDisable = forceDisable || ctx.DeviceConfig().NativeCoverageEnabled()
	forceDisable = forceDisable || ctx.Config().IsEnvTrue("EMMA_INSTRUMENT")

	// b/137216042 don't use prebuilts when address sanitizer is on, unless the prebuilt has a sanitized source
	sanitized := ctx.Module().(sanitizedPrebuilt)
	forceDisable = forceDisable || (android.InList("address", ctx.Config().SanitizeDevice()) && !sanitized.hasSanitizedSource("address"))