diff options
author | 2023-04-17 11:24:54 +0900 | |
---|---|---|
committer | 2023-04-17 15:25:17 +0900 | |
commit | 9551384f65eb77e43afbe3408d5437ce91804edd (patch) | |
tree | 1d81b257b595bdaa169c1ffb249d2e3a3d33a91c /apex/builder.go | |
parent | 7de9aa1a7bdc9f301891c2bd5a27e693d6b57c94 (diff) |
apex: skip symbol files when replaced with prebuilt
Apexer rule with symbol files causes "no build rule" error when the apex
is replaced with prebuilt.
Bug: 251299786
Test: m checkbuild (presubmit)
Change-Id: I7390f72c321beaeb49fcee4e02a219c07f184664
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/builder.go b/apex/builder.go index 94aef496e..2f8a4ec09 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -468,6 +468,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { imageDir := android.PathForModuleOut(ctx, "image"+suffix) installSymbolFiles := (!ctx.Config().KatiEnabled() || a.ExportedToMake()) && a.installable() + // We can't install symbol files when prebuilt is used. + if a.IsReplacedByPrebuilt() { + installSymbolFiles = false + } // set of dependency module:location mappings installMapSet := make(map[string]bool) |