diff options
Diffstat (limited to 'rust/testing.go')
| -rw-r--r-- | rust/testing.go | 24 | 
1 files changed, 23 insertions, 1 deletions
diff --git a/rust/testing.go b/rust/testing.go index f2d4c5eba..925b02c96 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -44,7 +44,28 @@ func GatherRequiredDepsForTest() string {                                  },  				host_supported: true,  		} - +		rust_prebuilt_library { +				name: "libstd_x86_64-apple-darwin", +                                crate_name: "std", +                                rlib: { +                                    srcs: ["libstd.rlib"], +                                }, +                                dylib: { +                                    srcs: ["libstd.so"], +                                }, +				host_supported: true, +		} +		rust_prebuilt_library { +				name: "libtest_x86_64-apple-darwin", +                                crate_name: "test", +                                rlib: { +                                    srcs: ["libtest.rlib"], +                                }, +                                dylib: { +                                    srcs: ["libtest.so"], +                                }, +				host_supported: true, +		}  		//////////////////////////////  		// Device module requirements @@ -77,6 +98,7 @@ func GatherRequiredDepsForTest() string {  func CreateTestContext() *android.TestContext {  	ctx := android.NewTestArchContext() +	android.RegisterPrebuiltMutators(ctx)  	cc.RegisterRequiredBuildComponentsForTest(ctx)  	ctx.RegisterModuleType("genrule", genrule.GenRuleFactory)  	ctx.RegisterModuleType("rust_binary", RustBinaryFactory)  |