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

Commit 5c46a815 authored by Christoffer Adamsen's avatar Christoffer Adamsen Committed by Gerrit Code Review
Browse files

Merge "Configure R8 store-store-fence constructor inlining when enabled" into main

parents ee97ae8c b81fc91a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2172,6 +2172,10 @@ func (c *config) UseTransitiveJarsInClasspath() bool {
	return c.productVariables.GetBuildFlagBool("RELEASE_USE_TRANSITIVE_JARS_IN_CLASSPATH")
}

func (c *config) UseR8StoreStoreFenceConstructorInlining() bool {
	return c.productVariables.GetBuildFlagBool("RELEASE_R8_STORE_STORE_FENCE_CONSTRUCTOR_INLINING")
}

func (c *config) UseDexV41() bool {
	return c.productVariables.GetBuildFlagBool("RELEASE_USE_DEX_V41")
}
+4 −0
Original line number Diff line number Diff line
@@ -412,6 +412,10 @@ func (d *dexer) r8Flags(ctx android.ModuleContext, dexParams *compileDexParams,
		artProfileOutput = profileOutput
	}

	if ctx.Config().UseR8StoreStoreFenceConstructorInlining() {
		r8Flags = append(r8Flags, "--store-store-fence-constructor-inlining")
	}

	return r8Flags, r8Deps, artProfileOutput
}