summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-11-17 06:32:06 +0000
committerColin Cross <ccross@android.com>2020-11-17 06:32:06 +0000
commitb5ae193b8f01f396168fa30bf9163c31337c502b (patch)
treead2596ee2796862defb25e947572d9c5c9539f93 /rust/testing.go
parent62a0cfd05460d0e760ce9133690e48861bb57eee (diff)
Revert "Annotate dependency tags for dependencies of installed files"
This reverts commit 62a0cfd05460d0e760ce9133690e48861bb57eee. Reason for revert: b/173475545 Change-Id: I4e834200c8e68dfa1b8144dfd1fa95ca68554980
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index 001f322d8..66877a907 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -17,6 +17,7 @@ package rust
import (
"android/soong/android"
"android/soong/cc"
+ "android/soong/genrule"
)
func GatherRequiredDepsForTest() string {
@@ -131,6 +132,7 @@ func CreateTestContext(config android.Config) *android.TestContext {
android.RegisterPrebuiltMutators(ctx)
ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators)
cc.RegisterRequiredBuildComponentsForTest(ctx)
+ ctx.RegisterModuleType("genrule", genrule.GenRuleFactory)
ctx.RegisterModuleType("rust_binary", RustBinaryFactory)
ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory)
ctx.RegisterModuleType("rust_bindgen", RustBindgenFactory)