Merge "Only include used requests in cquery starlark" am: e09691ce78

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1664540

Change-Id: Ic57642f2d1bad148bb68dce09b5ebdda1b816745
This commit is contained in:
Treehugger Robot
2021-04-06 17:10:22 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 6 deletions

View File

@@ -474,7 +474,7 @@ def %s(target):
return id_string + ">>" + %s(target)
`
for _, requestType := range cquery.RequestTypes {
for requestType, _ := range requestTypeToCqueryIdEntries {
labelMapName := requestType.Name() + "_Labels"
functionName := requestType.Name() + "_Fn"
labelRegistrationMapSection += fmt.Sprintf(mapDeclarationFormatString,

View File

@@ -14,11 +14,6 @@ type GetOutputFilesAndCcObjectFiles_Result struct {
CcObjectFiles []string
}
var RequestTypes []RequestType = []RequestType{
GetOutputFiles,
GetOutputFilesAndCcObjectFiles,
}
type RequestType interface {
// Name returns a string name for this request type. Such request type names must be unique,
// and must only consist of alphanumeric characters.