diff options
| author | 2020-07-05 01:33:24 +0900 | |
|---|---|---|
| committer | 2020-07-05 01:33:24 +0900 | |
| commit | 8f9782f513d3c148af4a558e0101f800f32df72c (patch) | |
| tree | 8e13b426e9f6ab1ed77045467804938ae8b643f1 | |
| parent | 8fab5bcce33637d097673bb0d11d785b0ada36fd (diff) | |
remove unused GeneratedHeaders variable
Even though modules listed in generated_headers may produce .h files and
return the list of them as GeneratedSourceFiles(), cc modules do not
need them. GeneratedDeps() and GeneratedHeaderDirs() are what we need.
Bug: n/a
Test: m
Change-Id: I655f88e8c1a387e256c58913931721aaeab90b62
| -rw-r--r-- | cc/cc.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -136,7 +136,6 @@ type PathDeps struct { // Paths to generated source files GeneratedSources android.Paths - GeneratedHeaders android.Paths GeneratedDeps android.Paths Flags []string @@ -2228,8 +2227,6 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps { fallthrough case genHeaderDepTag, genHeaderExportDepTag: if genRule, ok := dep.(genrule.SourceFileGenerator); ok { - depPaths.GeneratedHeaders = append(depPaths.GeneratedHeaders, - genRule.GeneratedSourceFiles()...) depPaths.GeneratedDeps = append(depPaths.GeneratedDeps, genRule.GeneratedDeps()...) dirs := genRule.GeneratedHeaderDirs() @@ -2417,7 +2414,6 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps { if _, ok := ccDep.(*Module); ok { if i, ok := ccDep.(*Module).linker.(exportedFlagsProducer); ok { depPaths.SystemIncludeDirs = append(depPaths.SystemIncludeDirs, i.exportedSystemDirs()...) - depPaths.GeneratedHeaders = append(depPaths.GeneratedHeaders, i.exportedGeneratedHeaders()...) depPaths.GeneratedDeps = append(depPaths.GeneratedDeps, i.exportedDeps()...) depPaths.Flags = append(depPaths.Flags, i.exportedFlags()...) @@ -2647,7 +2643,6 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps { depPaths.Flags = android.FirstUniqueStrings(depPaths.Flags) depPaths.IncludeDirs = android.FirstUniquePaths(depPaths.IncludeDirs) depPaths.SystemIncludeDirs = android.FirstUniquePaths(depPaths.SystemIncludeDirs) - depPaths.GeneratedHeaders = android.FirstUniquePaths(depPaths.GeneratedHeaders) depPaths.GeneratedDeps = android.FirstUniquePaths(depPaths.GeneratedDeps) depPaths.ReexportedDirs = android.FirstUniquePaths(depPaths.ReexportedDirs) depPaths.ReexportedSystemDirs = android.FirstUniquePaths(depPaths.ReexportedSystemDirs) |