Merge "Do not glob headers in out/"

This commit is contained in:
Spandan Das 2022-11-09 19:27:58 +00:00 committed by Gerrit Code Review
commit a8fff19350

View file

@ -956,7 +956,7 @@ func GlobHeadersForSnapshot(ctx android.ModuleContext, paths android.Paths) andr
for _, path := range paths {
dir := path.String()
// Skip if dir is for generated headers
if strings.HasPrefix(dir, android.PathForOutput(ctx).String()) {
if strings.HasPrefix(dir, ctx.Config().OutDir()) {
continue
}