summaryrefslogtreecommitdiff
path: root/cc/testing.go
diff options
context:
space:
mode:
author Sam Delmerico <delmerico@google.com> 2023-07-13 10:52:57 -0400
committer Sam Delmerico <delmerico@google.com> 2023-08-31 18:03:33 +0000
commitb45c844ce78b3f636996ead7e88aee9c220e5a92 (patch)
treee471bc6a8679f06a28a4e16cb663ada23ad89425 /cc/testing.go
parent8d7f2e41d1b519c4c70d452a3aa517e3148bbed7 (diff)
add rust_toolchain_rustc_prebuilt module type
Sandboxing the rust rules requires having explicit inputs for the rust toolchain. This module type makes the rustc prebuilt and its dependencies explicit as a module that can be depended on by all rust rules. Bug: 286077158 Test: rust sandboxing topic + go test Change-Id: If2b80b32e329e6a6ee11ba824de868cf04714553
Diffstat (limited to 'cc/testing.go')
-rw-r--r--cc/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/testing.go b/cc/testing.go
index d1632aaa6..dbdee9edf 100644
--- a/cc/testing.go
+++ b/cc/testing.go
@@ -35,6 +35,7 @@ func RegisterRequiredBuildComponentsForTest(ctx android.RegistrationContext) {
multitree.RegisterApiImportsModule(ctx)
+ ctx.RegisterModuleType("prebuilt_build_tool", android.NewPrebuiltBuildTool)
ctx.RegisterModuleType("cc_benchmark", BenchmarkFactory)
ctx.RegisterModuleType("cc_object", ObjectFactory)
ctx.RegisterModuleType("cc_genrule", GenRuleFactory)