Fix prebuilt selection logic for cc_prebuilt_library_headers.

Unlike other prebuilt modules it doesn't have a srcs property of any
kind, so android.Prebuilt cannot defer to the source module just
because its srcsSupplier would return nil.

Test: m nothing
Bug: 202192894
Change-Id: Iafcf165569bad6eae37820cf71aa0fcacb720e02
This commit is contained in:
Martin Stjernholm
2021-11-23 01:24:06 +00:00
parent b5f81d2a6a
commit e65c3aee02
5 changed files with 86 additions and 19 deletions

View File

@@ -102,7 +102,7 @@ func LibraryHeaderFactory() android.Module {
// cc_prebuilt_library_headers is a prebuilt version of cc_library_headers
func prebuiltLibraryHeaderFactory() android.Module {
module, library := NewPrebuiltLibrary(android.HostAndDeviceSupported)
module, library := NewPrebuiltLibrary(android.HostAndDeviceSupported, "")
library.HeaderOnly()
return module.Init()
}