Only include used requests in cquery starlark
Test: go test soong tests Test: generate & sync bp2build, mixed build libc Change-Id: I1fbf854cf31f40b7721788956d0f08da3bda2cba
This commit is contained in:
@@ -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,
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user