diff options
author | 2023-05-16 00:58:37 +0000 | |
---|---|---|
committer | 2023-05-19 20:31:32 +0000 | |
commit | 0c10e4dcc027e341655e8eedc20bd77f9539a22b (patch) | |
tree | 84843d33683b21c94e695d2251b1fe20c58cb4fb /rust/testing.go | |
parent | e59c0db5360b850b444c3bed9b92b0fd30b15e1e (diff) |
Parallelize singleton execution
Bug: 281536768
Test: manual, presubmits
Change-Id: I57fdc76ba6b277e88e196b506af87127a530fd37
Diffstat (limited to 'rust/testing.go')
-rw-r--r-- | rust/testing.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/testing.go b/rust/testing.go index 0a6a870d8..7f3056954 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -200,8 +200,8 @@ func registerRequiredBuildComponentsForTest(ctx android.RegistrationContext) { ctx.BottomUp("rust_stdlinkage", LibstdMutator).Parallel() ctx.BottomUp("rust_begin", BeginMutator).Parallel() }) - ctx.RegisterSingletonType("rust_project_generator", rustProjectGeneratorSingleton) - ctx.RegisterSingletonType("kythe_rust_extract", kytheExtractRustFactory) + ctx.RegisterParallelSingletonType("rust_project_generator", rustProjectGeneratorSingleton) + ctx.RegisterParallelSingletonType("kythe_rust_extract", kytheExtractRustFactory) ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) { ctx.BottomUp("rust_sanitizers", rustSanitizerRuntimeMutator).Parallel() }) |