From 0c10e4dcc027e341655e8eedc20bd77f9539a22b Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Tue, 16 May 2023 00:58:37 +0000 Subject: Parallelize singleton execution Bug: 281536768 Test: manual, presubmits Change-Id: I57fdc76ba6b277e88e196b506af87127a530fd37 --- rust/testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/testing.go') 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() }) -- cgit v1.2.3-59-g8ed1b