diff options
Diffstat (limited to 'golang')
-rw-r--r-- | golang/golang.go | 3 | ||||
-rw-r--r-- | golang/golang_test.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/golang/golang.go b/golang/golang.go index 618a0852b..6ee924f1d 100644 --- a/golang/golang.go +++ b/golang/golang.go @@ -22,6 +22,7 @@ package golang import ( "android/soong/android" + "github.com/google/blueprint" "github.com/google/blueprint/bootstrap" ) @@ -46,7 +47,7 @@ type GoPackage struct { func goPackageModuleFactory() android.Module { module := &GoPackage{} module.AddProperties(module.Properties()...) - android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst) + android.InitAndroidArchModule(module, android.HostSupportedNoCross, android.MultilibFirst) return module } diff --git a/golang/golang_test.go b/golang/golang_test.go index 9c5b809c1..0a4baedb4 100644 --- a/golang/golang_test.go +++ b/golang/golang_test.go @@ -40,7 +40,7 @@ func TestGolang(t *testing.T) { android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) { RegisterGoModuleTypes(ctx) ctx.PreDepsMutators(func(ctx android.RegisterMutatorsContext) { - ctx.BottomUpBlueprint("bootstrap_deps", bootstrap.BootstrapDeps) + ctx.BottomUpBlueprint("bootstrap_deps", bootstrap.BootstrapDeps).UsesReverseDependencies() }) }), ).RunTestWithBp(t, bp) |