Merge "Only include used requests in cquery starlark" am: e09691ce78
am: 7527d76f53
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1664540 Change-Id: I3da39689827b5afdb473ec17c4d2d2863daa1251
This commit is contained in:
commit
2292af0f2e
|
@ -474,7 +474,7 @@ def %s(target):
|
||||||
return id_string + ">>" + %s(target)
|
return id_string + ">>" + %s(target)
|
||||||
`
|
`
|
||||||
|
|
||||||
for _, requestType := range cquery.RequestTypes {
|
for requestType, _ := range requestTypeToCqueryIdEntries {
|
||||||
labelMapName := requestType.Name() + "_Labels"
|
labelMapName := requestType.Name() + "_Labels"
|
||||||
functionName := requestType.Name() + "_Fn"
|
functionName := requestType.Name() + "_Fn"
|
||||||
labelRegistrationMapSection += fmt.Sprintf(mapDeclarationFormatString,
|
labelRegistrationMapSection += fmt.Sprintf(mapDeclarationFormatString,
|
||||||
|
|
|
@ -14,11 +14,6 @@ type GetOutputFilesAndCcObjectFiles_Result struct {
|
||||||
CcObjectFiles []string
|
CcObjectFiles []string
|
||||||
}
|
}
|
||||||
|
|
||||||
var RequestTypes []RequestType = []RequestType{
|
|
||||||
GetOutputFiles,
|
|
||||||
GetOutputFilesAndCcObjectFiles,
|
|
||||||
}
|
|
||||||
|
|
||||||
type RequestType interface {
|
type RequestType interface {
|
||||||
// Name returns a string name for this request type. Such request type names must be unique,
|
// Name returns a string name for this request type. Such request type names must be unique,
|
||||||
// and must only consist of alphanumeric characters.
|
// and must only consist of alphanumeric characters.
|
||||||
|
|
Loading…
Reference in New Issue