diff options
| author | 2020-07-10 18:57:44 +0000 | |
|---|---|---|
| committer | 2020-07-10 18:57:44 +0000 | |
| commit | c76b0fd5f3676fce8c4417f6c1d40cb63eb0bee0 (patch) | |
| tree | 7f21e811bf0226b6170857a755f82b1b1d4d5ad4 /rust/testing.go | |
| parent | fd1e267e409556b77735f7c88802806243e7cad8 (diff) | |
| parent | 9c3f56a3aa5dd0f92155a8d5e137e79318b76a0e (diff) | |
Merge "Specify module dependency in the srcs list" am: 21143a601c am: 9c3f56a3aa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1356365
Change-Id: I5e4cbd9d86ee9f99d2bbc08fce40dd4b56d9dcbc
Diffstat (limited to 'rust/testing.go')
| -rw-r--r-- | rust/testing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go index 3d583e197..430b40bfd 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 { @@ -77,6 +78,7 @@ func GatherRequiredDepsForTest() string { func CreateTestContext() *android.TestContext { ctx := android.NewTestArchContext() cc.RegisterRequiredBuildComponentsForTest(ctx) + ctx.RegisterModuleType("genrule", genrule.GenRuleFactory) ctx.RegisterModuleType("rust_binary", RustBinaryFactory) ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory) ctx.RegisterModuleType("rust_test", RustTestFactory) |