Merge "Pass Config to NewTestContext instead of ctx.Register"

This commit is contained in:
Treehugger Robot
2020-11-14 05:58:58 +00:00
committed by Gerrit Code Review
45 changed files with 209 additions and 208 deletions

View File

@@ -52,7 +52,7 @@ func newNameResolver(config android.Config) *android.NameResolver {
}
func newContext(srcDir string, configuration android.Config) *android.Context {
ctx := android.NewContext()
ctx := android.NewContext(configuration)
ctx.Register()
if !shouldPrepareBuildActions() {
configuration.SetStopBefore(bootstrap.StopBeforePrepareBuildActions)