Use generics for DepSets
Use Go's generics for DepSets so they don't require a type-specific wrapper and reflection. Test: depsets_test.go Change-Id: I22ba0b7d680d37d2cd05230b0f560d166c4dd20b
This commit is contained in:
@@ -345,7 +345,7 @@ type SharedLibraryInfo struct {
|
||||
TableOfContents android.OptionalPath
|
||||
|
||||
// should be obtained from static analogue
|
||||
TransitiveStaticLibrariesForOrdering *android.DepSet
|
||||
TransitiveStaticLibrariesForOrdering *android.DepSet[android.Path]
|
||||
}
|
||||
|
||||
var SharedLibraryInfoProvider = blueprint.NewProvider(SharedLibraryInfo{})
|
||||
@@ -387,7 +387,7 @@ type StaticLibraryInfo struct {
|
||||
// This isn't the actual transitive DepSet, shared library dependencies have been
|
||||
// converted into static library analogues. It is only used to order the static
|
||||
// library dependencies that were specified for the current module.
|
||||
TransitiveStaticLibrariesForOrdering *android.DepSet
|
||||
TransitiveStaticLibrariesForOrdering *android.DepSet[android.Path]
|
||||
}
|
||||
|
||||
var StaticLibraryInfoProvider = blueprint.NewProvider(StaticLibraryInfo{})
|
||||
|
Reference in New Issue
Block a user